Skip to content

Commit

Permalink
Correct ineffassign warning
Browse files Browse the repository at this point in the history
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
  • Loading branch information
gliptak committed Dec 3, 2018
1 parent c0437c3 commit b49c471
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ func TestLoadWithMissingSubsystems(t *testing.T) {
t.Error(err)
return
}
if control == nil {
t.Error("control is nil")
return
}
if control, err = Load(mock.hierarchy, StaticPath("test")); err != nil {
t.Error(err)
return
Expand Down

0 comments on commit b49c471

Please sign in to comment.