Skip to content

Commit

Permalink
fixes unrelated linting errors to make gh actions happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ornj committed Jul 29, 2024
1 parent e369024 commit 6051226
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

// Creator abstracts file creation (to write configs to something other than files).
type Creator interface {
Create(string) (io.WriteCloser, error)
Create(path string) (io.WriteCloser, error)
Reset()
}

Expand Down
2 changes: 1 addition & 1 deletion types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestDirective_String(t *testing.T) {
},
} {
s := tf.directive.String()
assert.Equal(t, s, tf.expected)
assert.Equal(t, tf.expected, s)
}
}

Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func validExpr(d *Directive) bool {
strings.HasSuffix(d.Args[e], ")") &&
((l == 1 && len(d.Args[b]) > 2) || // empty expression single arg '()'
(l == 2 && (len(d.Args[b]) > 1 || len(d.Args[e]) > 1)) || // empty expression two args '(', ')'
(l > 2))
(l > 2)) //nolint: mnd
}

// prepareIfArgs removes parentheses from an `if` directive's arguments.
Expand Down
2 changes: 1 addition & 1 deletion util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"encoding/json"
"testing"

. "github.com/nginxinc/nginx-go-crossplane"
. "github.com/nginxinc/nginx-go-crossplane" //nolint: revive
)

//nolint:funlen
Expand Down

0 comments on commit 6051226

Please sign in to comment.