Skip to content

Commit 6051226

Browse files
committed
fixes unrelated linting errors to make gh actions happy
1 parent e369024 commit 6051226

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

buffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
// Creator abstracts file creation (to write configs to something other than files).
1616
type Creator interface {
17-
Create(string) (io.WriteCloser, error)
17+
Create(path string) (io.WriteCloser, error)
1818
Reset()
1919
}
2020

types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestDirective_String(t *testing.T) {
4040
},
4141
} {
4242
s := tf.directive.String()
43-
assert.Equal(t, s, tf.expected)
43+
assert.Equal(t, tf.expected, s)
4444
}
4545
}
4646

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func validExpr(d *Directive) bool {
6464
strings.HasSuffix(d.Args[e], ")") &&
6565
((l == 1 && len(d.Args[b]) > 2) || // empty expression single arg '()'
6666
(l == 2 && (len(d.Args[b]) > 1 || len(d.Args[e]) > 1)) || // empty expression two args '(', ')'
67-
(l > 2))
67+
(l > 2)) //nolint: mnd
6868
}
6969

7070
// prepareIfArgs removes parentheses from an `if` directive's arguments.

util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"encoding/json"
1212
"testing"
1313

14-
. "github.com/nginxinc/nginx-go-crossplane"
14+
. "github.com/nginxinc/nginx-go-crossplane" //nolint: revive
1515
)
1616

1717
//nolint:funlen

0 commit comments

Comments
 (0)