From 4891de0a8ab4bc8d09a4fdf16406121be8e032cb Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 15 Jan 2024 15:57:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#3619)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/cloud_storage/client/helper.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/utils/cloud_storage/client/helper.go b/backend/utils/cloud_storage/client/helper.go index 0c05dc5ac..60723d01d 100644 --- a/backend/utils/cloud_storage/client/helper.go +++ b/backend/utils/cloud_storage/client/helper.go @@ -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]) }