danstis/go-nitrado

View on GitHub

Showing 2 of 9 total issues

Method GSSettingsService.Update has 6 return statements (exceeds 4 allowed).
Open

func (s *GSSettingsService) Update(serviceID int, opts GSSettingsUpdateOptions) error {
    if opts.Category == "" || opts.Key == "" {
        return fmt.Errorf("category and key must not be blank. category=%q, key=%q", opts.Category, opts.Key)
    }
    u := fmt.Sprintf("services/%v/gameservers/settings", serviceID)
Severity: Major
Found in nitrado/gameserver_settings.go - About 40 mins to fix

Method FileServerService.List has 5 return statements (exceeds 4 allowed).
Open

func (s *FileServerService) List(svc Service, opts FileServerListOptions) ([]File, *http.Response, error) {
    u := fmt.Sprintf("services/%v/gameservers/file_server/list", svc.ID)
    u, err := addOptions(u, opts)
    if err != nil {
        return nil, nil, err
Severity: Major
Found in nitrado/gameserver_fileserver.go - About 35 mins to fix
Severity
Category
Status
Source
Language