diff --git a/cmd/guru/describe.go b/cmd/guru/describe.go index a42ca524..2bec552f 100644 --- a/cmd/guru/describe.go +++ b/cmd/guru/describe.go @@ -658,9 +658,8 @@ func constValString(v exact.Value) string { if v.Kind() == exact.Float { // In go1.5, go/constant floating-point values are printed // as fractions. Make them appear as floating-point numbers. - if f, ok := exact.Float64Val(v); ok { - return fmt.Sprintf("%g", f) - } + f, _ := exact.Float64Val(v) + return fmt.Sprintf("%g", f) } return v.String() }