fix unconvert issues

This commit is contained in:
Mario Trangoni
2018-04-16 20:04:58 +02:00
parent 7d165068df
commit ce941a004d
11 changed files with 14 additions and 14 deletions

View File

@ -50,7 +50,7 @@ func (f *Float) UnmarshalJSON(data []byte) error {
}
switch x := v.(type) {
case float64:
f.Float64 = float64(x)
f.Float64 = x
case map[string]interface{}:
err = json.Unmarshal(data, &f.NullFloat64)
case nil: