Return from error case.
parent
13b42f3238
commit
47fa897aed
1
main.go
1
main.go
|
@ -448,6 +448,7 @@ func main() {
|
||||||
if competitionTeam.Id == 0 {
|
if competitionTeam.Id == 0 {
|
||||||
conn.Noticef(sender, "Sorry, something went horribly wrong here.")
|
conn.Noticef(sender, "Sorry, something went horribly wrong here.")
|
||||||
log.Print("Returned team ID of a team in competition was 0...")
|
log.Print("Returned team ID of a team in competition was 0...")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fixtures, err := footballData.FixturesOfTeam(competitionTeam.Id).
|
fixtures, err := footballData.FixturesOfTeam(competitionTeam.Id).
|
||||||
|
|
Loading…
Reference in New Issue