Fix some go linting warnings.

master
Icedream 2018-06-14 00:02:27 +02:00
parent 84f97318b5
commit 13eec0fb33
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 3 additions and 2 deletions

View File

@ -501,7 +501,8 @@ func main() {
case strings.EqualFold(cmd.Name, "!group"),
strings.EqualFold(cmd.Name, "!table"):
if leagueTable, err := footballData.LeagueTableOfCompetition(Competition).Do(); err != nil {
if s, err := tplString("error", err); err != nil {
var s string
if s, err = tplString("error", err); err != nil {
log.Print(err)
} else {
conn.Privmsg(target, s)
@ -561,7 +562,7 @@ func main() {
actualStanding = v.TeamLeagueStatistics
}
goalDiffPrefix := ""
var goalDiffPrefix string
if actualStanding.GoalDifference > 0 {
goalDiffPrefix = "+"
} else {