Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminguttmann-avtq committed Dec 18, 2024
1 parent ec475b9 commit c76d0b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ linters:
disable-all: false
enable:
- bodyclose
- copyloopvar
- dogsled
- errcheck
- exportloopref
- gocognit
- goconst
- gocritic
Expand Down
4 changes: 2 additions & 2 deletions fetcher/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (c *Worker) Push(name string, handler WorkHandler) {
}
}

func (c *Worker) PushIf(name string, handler WorkHandler, any ...string) {
if c.filter.Any(any...) {
func (c *Worker) PushIf(name string, handler WorkHandler, anyArgs ...string) {
if c.filter.Any(anyArgs...) {
c.Push(name, handler)
}
}
Expand Down

0 comments on commit c76d0b0

Please sign in to comment.