Skip to content

Commit

Permalink
bumped linting
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Oct 4, 2024
1 parent 52e7f17 commit 39680ae
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ no-local-changes:
lint: ## Run linter
GOWORK=off go vet ./...
GOWORK=off $(GORUN) $(GOLANGCI_LINT) run -c ./scripts/.golangci.yml
cd sdk && make lint
cd sdk && make lint GOLANGCI_LINT=$(GOLANGCI_LINT)

format: ## Format code
$(GORUN) ${GOFUMPT} -l -w .
Expand Down
2 changes: 1 addition & 1 deletion sdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ clean: ## Remove all .pb.go files
find . -name "*.pb.go" -not -path "*/vendor/*" -exec rm -f {} \;

lint: ## Run linter
GOWORK=off go run github.com/golangci/golangci-lint/cmd/[email protected] run -c ../scripts/.golangci.yml
GOWORK=off go run $(GOLANGCI_LINT) run -c ../scripts/.golangci.yml

generate: clean ## Generate .pb.go files
for packageName in "common" "events"; do \
Expand Down
2 changes: 1 addition & 1 deletion sdk/client/commander.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func (c *commander) Upload(ctx context.Context, cfg *proto.NginxConfig, messageI
}

if status.Status != proto.UploadStatus_OK {
return fmt.Errorf(status.Reason)
return fmt.Error(status.Reason)
}

return nil
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/nginx/agent/sdk/v2/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/nginx/agent/sdk/v2/client/commander.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39680ae

Please sign in to comment.