heshoots/discordbot

View on GitHub
pkg/challonge/challonge.go

Summary

Maintainability
A
35 mins
Test Coverage

Function CreateTournament has 5 return statements (exceeds 4 allowed).
Open

func CreateTournament(apikey string, subdomain string, name string, game string) (string, error) {
    client := &http.Client{}
    tournamentvalues := map[string]string{"name": name, "url": name, "subdomain": subdomain, "game_name": game, "tournament_type": "double elimination"}
    values := map[string]map[string]string{"tournament": tournamentvalues}
    jsonValue, err := json.Marshal(values)
Severity: Major
Found in pkg/challonge/challonge.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status