Skip to content

Commit

Permalink
Merge pull request #70 from reubenmiller/chore-fix-lints
Browse files Browse the repository at this point in the history
lint: address latest linting rule violations
  • Loading branch information
reubenmiller authored Oct 2, 2024
2 parents 91b53e9 + e53b391 commit ac52927
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
# see https://github.com/golangci/golangci-lint-action/issues/807
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: latest

Expand Down
2 changes: 1 addition & 1 deletion pkg/c8y/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ func (c *Client) DefaultDryRunHandler(options *RequestOptions, req *http.Request
message += "\nBody: (empty)\n"
}

if options.FormData != nil && len(options.FormData) > 0 {
if len(options.FormData) > 0 {
message += "\nForm Data:\n"

// Sort formdata keys
Expand Down
2 changes: 1 addition & 1 deletion pkg/c8y/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *ContextService) ServiceUserContext(tenant string, skipUpdateServiceUser
client.Microservice.SetServiceUsers()
}

if client.ServiceUsers == nil || len(client.ServiceUsers) == 0 {
if len(client.ServiceUsers) == 0 {
panic("No service users found")
}
var auth string
Expand Down

0 comments on commit ac52927

Please sign in to comment.