aboutsummaryrefslogtreecommitdiffstats
path: root/temperature.go
diff options
context:
space:
mode:
Diffstat (limited to 'temperature.go')
-rw-r--r--temperature.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/temperature.go b/temperature.go
index 89cb1ba..7562ca7 100644
--- a/temperature.go
+++ b/temperature.go
@@ -64,7 +64,7 @@ func (t temperature) asUnit(u temperatureUnit) (float32, error) {
case kelvin:
return c + 272.15, nil
case fahrenheit:
- return c * (9.0 / 5.0) + 32.0, nil
+ return c*(9.0/5.0) + 32.0, nil
default:
return 0, errors.New(fmt.Sprintf("invalid temperatureUnit: '%v'", u))
}