Skip to content
/ wego Public
forked from schachmat/wego

Commit

Permalink
else is not needed for return switches
Browse files Browse the repository at this point in the history
  • Loading branch information
schachmat committed May 15, 2015
1 parent 0a3ce5b commit 8af72c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions we.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8af72c0

Please # to comment.