danstis/go-nitrado

View on GitHub
nitrado/gameserver_settings.go

Summary

Maintainability
A
40 mins
Test Coverage

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

There are no issues that match your filters.

Category
Status