remove unneeded checks

This commit is contained in:
filifa 2024-07-14 19:20:20 -05:00
parent dd11139d3d
commit 6480297c5c
1 changed files with 1 additions and 10 deletions

View File

@ -17,7 +17,6 @@ package cmd
import (
"encoding/json"
"errors"
"fmt"
"log"
"os"
@ -63,15 +62,7 @@ var teamIDs = map[string]statsapi.TeamID{
}
func getGamePk() (string, error) {
if Team == "" {
return "", errors.New("need team ID")
}
id, ok := teamIDs[string(Team)]
if !ok {
return "", errors.New("invalid team ID")
}
id := teamIDs[string(Team)]
sched, err := statsapi.RequestSchedule("1", strconv.Itoa(int(id)))
if err != nil {
return "", err