优化代码

This commit is contained in:
GoEdgeLab
2023-03-12 16:18:16 +08:00
parent 4423f801cc
commit 6bd91cff24

View File

@@ -860,7 +860,7 @@ func (this *HTTPRequest) Format(source string) string {
}
// response.xxx.xxx
dotIndex := strings.Index(suffix, ".")
dotIndex = strings.Index(suffix, ".")
if dotIndex < 0 {
return "${" + varName + "}"
}