Skip to content

Commit

Permalink
fix minor golangci-lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
batmac committed Jun 24, 2023
1 parent efd3ed4 commit 399a523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/ccat/processfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func processFile(w io.Writer, path string) {

// fmt.Println("text ", text)
// fmt.Println("token ", token)
matched, err = regexp.MatchString(regexpPrefix+token, string(text))
matched, err = regexp.Match(regexpPrefix+token, text)
if err != nil {
setErrored()
log.Println(err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/mutators/single/0single.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func defaultConfigBuilder(args []string) (any, error) {
if len(args) != 0 {
return nil, ErrWrongNumberOfArgs(0, 0, len(args))
}
return nil, nil
return nil, nil //nolint:nilnil
}

func singleRegister(name string, f singleFn, opts ...singleOption) {
Expand Down

0 comments on commit 399a523

Please sign in to comment.