Showing 2 of 9 total issues
Method GSSettingsService.Update
has 6 return statements (exceeds 4 allowed). Open
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)
- Create a ticketCreate a ticket
Method FileServerService.List
has 5 return statements (exceeds 4 allowed). Open
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
- Create a ticketCreate a ticket