Commit f04563c4 authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Kamil Kisiel

decoder/loadFloat: No need to explicitly cast v to interface{}

v is concrete type here (float64) and Go automatically converts it to
interface{} on call to Decoder.push().
parent 49c79ab9
......@@ -391,7 +391,7 @@ func (d *Decoder) loadFloat() error {
if err != nil {
return err
}
d.push(interface{}(v))
d.push(v)
return nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment