Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
godrei committed Jun 21, 2023
1 parent 846fcb9 commit 9e41fc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ issues:
- path: cli/update.go
linters:
- staticcheck
- path: tools/timeoutcmd/timeoutcmd.go
- path: stepruncmd/timeoutcmd/timeoutcmd.go
linters:
- staticcheck
- govet
Expand Down Expand Up @@ -79,9 +79,6 @@ issues:
- path: configs/configs.go
linters:
- gosimple
- path: tools/filterwriter/range.go
linters:
- gosimple
- path: plugins/git.go
linters:
- deadcode
Expand Down
2 changes: 1 addition & 1 deletion stepruncmd/filterwriter/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type matchRange struct{ first, last int }
func allRanges(b, pattern []byte) (ranges []matchRange) {
i := 0
for {
sub := b[i:len(b)]
sub := b[i:]
idx := bytes.Index(sub, pattern)
if idx == -1 {
return
Expand Down

0 comments on commit 9e41fc0

Please sign in to comment.