From 8af72c0446cd780014b414df5a39cc1dda4a12fe Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Fri, 15 May 2015 22:24:13 +0200 Subject: [PATCH] else is not needed for return switches --- we.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/we.go b/we.go index c2ce8fc..05b6e52 100644 --- a/we.go +++ b/we.go @@ -347,9 +347,8 @@ func formatTemp(c cond) string { return fmt.Sprintf("%s – %s °%s ", color(c.FeelsLikeC), color(c.TempC), unitTemp[config.Imperial])[:48] } else if c.FeelsLikeC > c.TempC { return fmt.Sprintf("%s – %s °%s ", color(c.TempC), color(c.FeelsLikeC), unitTemp[config.Imperial])[:48] - } else { - return fmt.Sprintf("%s °%s ", color(c.FeelsLikeC), unitTemp[config.Imperial])[:31] } + return fmt.Sprintf("%s °%s ", color(c.FeelsLikeC), unitTemp[config.Imperial])[:31] } func formatWind(c cond) string {