Skip to content

Commit b49c471

Browse files
committed
Correct ineffassign warning
Signed-off-by: Gábor Lipták <[email protected]>
1 parent c0437c3 commit b49c471

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cgroup_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ func TestLoadWithMissingSubsystems(t *testing.T) {
283283
t.Error(err)
284284
return
285285
}
286+
if control == nil {
287+
t.Error("control is nil")
288+
return
289+
}
286290
if control, err = Load(mock.hierarchy, StaticPath("test")); err != nil {
287291
t.Error(err)
288292
return

0 commit comments

Comments
 (0)