Skip to content

Commit

Permalink
clean up linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz authored Oct 28, 2024
1 parent e6b3bcc commit f2a4111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func (api *API) DeleteZoneSnippet(ctx context.Context, rc *ResourceContainer, sn
return fmt.Errorf("%s: %w", errUnmarshalError, err)
}

if result.Success != true {
return fmt.Errorf(result.Messages[0].Message)
if !result.Success {
return errors.New(result.Messages[0].Message)

Check failure on line 58 in snippets.go

View workflow job for this annotation

GitHub Actions / test (1.20)

undefined: errors

Check failure on line 58 in snippets.go

View workflow job for this annotation

GitHub Actions / test (1.20)

undefined: errors

Check failure on line 58 in snippets.go

View workflow job for this annotation

GitHub Actions / test (1.21)

undefined: errors

Check failure on line 58 in snippets.go

View workflow job for this annotation

GitHub Actions / test (1.21)

undefined: errors

Check failure on line 58 in snippets.go

View workflow job for this annotation

GitHub Actions / test (1.22)

undefined: errors

Check failure on line 58 in snippets.go

View workflow job for this annotation

GitHub Actions / test (1.22)

undefined: errors
}

return nil
Expand Down

0 comments on commit f2a4111

Please sign in to comment.