Removed unused case from ReflectFieldAsString function in utils/reflect.go

This commit is contained in:
andronache
2020-11-23 15:38:22 +02:00
committed by Dan Christian Bogos
parent 7ec99afae9
commit 7a16c29e11

View File

@@ -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())
}