Skip to content

Commit

Permalink
update to latest linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Sep 3, 2024
1 parent b8f4639 commit ecc7106
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ linters:
- err113
# deprecated
- execinquery
- exportloopref
- gomnd
issues:
max-same-issues: 0
Expand Down
2 changes: 1 addition & 1 deletion pkg/modgearman/mod_gearman_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var (
var aIsRunning int64

func isRunning() bool {
return uint8(atomic.LoadInt64(&aIsRunning)) != 0
return atomic.LoadInt64(&aIsRunning) != 0
}

// Worker starts the mod_gearman_worker program
Expand Down
2 changes: 1 addition & 1 deletion pkg/modgearman/mod_gearman_worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func BenchmarkJobs(b *testing.B) {
if sendError != nil {
b.Log(stdout.String())
b.Log(stderr.String())
b.Fatalf(sendError.Error())
b.Fatalf("%s", sendError.Error())
}
}

Expand Down
1 change: 0 additions & 1 deletion pkg/modgearman/readAndExecute.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ func execEPN(result *answer, cmd *command, received *request) {
func fixReturnCodes(result *answer, config *config, state *os.ProcessState) {
if result.returnCode >= 0 && result.returnCode <= 3 {
if config.workerNameInResult != "off" {

switch config.workerNameInResult {
case "on":
result.output = fmt.Sprintf("(worker: %s) %s", config.identifier, result.output)
Expand Down

0 comments on commit ecc7106

Please sign in to comment.