mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
Removed unused case from ReflectFieldAsString function in utils/reflect.go
This commit is contained in:
committed by
Dan Christian Bogos
parent
7ec99afae9
commit
7a16c29e11
@@ -108,8 +108,6 @@ func ReflectFieldAsString(intf interface{}, fldName, extraFieldsLabel string) (s
|
||||
return strconv.FormatInt(vOf.Int(), 10), nil
|
||||
case reflect.Float64:
|
||||
return strconv.FormatFloat(vOf.Float(), 'f', -1, 64), nil
|
||||
case reflect.Interface:
|
||||
return IfaceAsString(field), nil
|
||||
default:
|
||||
return "", fmt.Errorf("Cannot convert to string field type: %s", vOf.Kind().String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user