Skip to content

Commit b6be4e8

Browse files
kolyshkindrakenclimber
authored andcommitted
test: subprocessSetAPILevel: fix a linter warning
This fixes the following warning from gosimple linter: > seccomp_test.go:146:2: S1021: should merge variable declaration with > assignment on next line (gosimple) Signed-off-by: Kir Kolyshkin <[email protected]> Acked-by: Paul Moore <[email protected]> Signed-off-by: Tom Hromatka <[email protected]>
1 parent c0d6c4c commit b6be4e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

seccomp_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ func TestSetAPILevel(t *testing.T) {
9191
execInSubprocess(t, subprocessSetAPILevel)
9292
}
9393
func subprocessSetAPILevel(t *testing.T) {
94-
var expectedAPI uint
94+
const expectedAPI = uint(1)
9595

96-
expectedAPI = 1
9796
err := SetAPI(expectedAPI)
9897
if !APILevelIsSupported() {
9998
if err == nil {

0 commit comments

Comments
 (0)