diff --git a/cmd/schedule.go b/cmd/schedule.go index 2adcd65..7d75205 100644 --- a/cmd/schedule.go +++ b/cmd/schedule.go @@ -30,10 +30,8 @@ var team teamFlag var sport = sportFlag("mlb") func schedule(cmd *cobra.Command, args []string) { - var teamId string - if team == "" { - teamId = string(team) - } else { + teamId := "" + if team != "" { teamId = strconv.Itoa(int(teamIDs[string(team)])) }