Skip to content

Commit

Permalink
Removed unnecessary KnownTournament struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Altarrel committed Jun 18, 2018
1 parent bf89c67 commit 6dbf684
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (c *Client) GetOpenTournaments(params url.Values) (tournaments []Tournament

// GetKnownTournaments returns a slice of tournaments people have searched for.
// https://docs.royaleapi.com/#/endpoints/tournaments_known
func (c *Client) GetKnownTournaments(params url.Values) (tournaments []KnownTournament, err error) {
func (c *Client) GetKnownTournaments(params url.Values) (tournaments []Tournament, err error) {
var b []byte
path := "/tournaments/known"
if b, err = c.get(path, params); err == nil {
Expand Down
6 changes: 0 additions & 6 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,6 @@ type Tournament struct {
EndTime int
}

// KnownTournament is a tournament someone has already searched for.
// https://docs.royaleapi.com/#/endpoints/tournaments_known
type KnownTournament struct {
Tournament
}

// Tournament1k is a tournament returned from Get1kTournaments.
// It always has 1000 MaxPlayers.
type Tournament1k struct {
Expand Down

0 comments on commit 6dbf684

Please sign in to comment.