simplify setting teamId
This commit is contained in:
parent
e1e0225612
commit
68b3268054
|
@ -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)]))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue