File tree 4 files changed +4
-4
lines changed 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
15
15
// Creator abstracts file creation (to write configs to something other than files).
16
16
type Creator interface {
17
- Create (string ) (io.WriteCloser , error )
17
+ Create (path string ) (io.WriteCloser , error )
18
18
Reset ()
19
19
}
20
20
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func TestDirective_String(t *testing.T) {
40
40
},
41
41
} {
42
42
s := tf .directive .String ()
43
- assert .Equal (t , s , tf .expected )
43
+ assert .Equal (t , tf .expected , s )
44
44
}
45
45
}
46
46
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ func validExpr(d *Directive) bool {
64
64
strings .HasSuffix (d .Args [e ], ")" ) &&
65
65
((l == 1 && len (d .Args [b ]) > 2 ) || // empty expression single arg '()'
66
66
(l == 2 && (len (d .Args [b ]) > 1 || len (d .Args [e ]) > 1 )) || // empty expression two args '(', ')'
67
- (l > 2 ))
67
+ (l > 2 )) //nolint: mnd
68
68
}
69
69
70
70
// prepareIfArgs removes parentheses from an `if` directive's arguments.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"encoding/json"
12
12
"testing"
13
13
14
- . "github.com/nginxinc/nginx-go-crossplane"
14
+ . "github.com/nginxinc/nginx-go-crossplane" //nolint: revive
15
15
)
16
16
17
17
//nolint:funlen
You can’t perform that action at this time.
0 commit comments