fix: 解决类型断言错误的问题 (#3619)

This commit is contained in:
ssongliu 2024-01-15 15:57:02 +08:00 committed by GitHub
parent be6b58b0a1
commit 4891de0a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,6 @@ func loadParamFromVars(key string, isString bool, vars map[string]interface{}) s
}
return ""
}
if isString {
return vars[key].(string)
}
return fmt.Sprintf("%v", vars[key].(float64))
return fmt.Sprintf("%v", vars[key])
}