diff --git a/hrp/internal/builtin/utils.go b/hrp/internal/builtin/utils.go index bca93f1e..cde8e349 100644 --- a/hrp/internal/builtin/utils.go +++ b/hrp/internal/builtin/utils.go @@ -396,6 +396,9 @@ func ConvertToFloat64(val interface{}) (float64, error) { } func ConvertToFloat64Slice(val interface{}) ([]float64, error) { + if paramsSlice, ok := val.([]float64); ok { + return paramsSlice, nil + } paramsSlice, ok := val.([]interface{}) if !ok { return nil, errors.New("val is not slice") diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index 5714497f..46751fd8 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v5.0.0+2412241743 +v5.0.0+2412252005