Skip to content

Commit 2fa273b

Browse files
committed
fix panic error
1 parent 956a0ea commit 2fa273b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internals/proxy/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func templateJSON(data map[string]interface{}, variables map[string]interface{})
109109

110110
data[k] = strings.ReplaceAll(str, string(variable), tmplStr[0])
111111
}
112-
} else {
112+
} else if len(matches) == 1 {
113113
tmplKey := matches[0][1]
114114

115115
data[k] = variables[tmplKey]

0 commit comments

Comments
 (0)