Skip to content

Commit c9e057d

Browse files
committed
Update empty check for consistency
Signed-off-by: Evan Lezar <[email protected]>
1 parent 922fc93 commit c9e057d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs-go/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func requiresV110(spec *Spec) bool {
150150
}
151151
}
152152

153-
if len(spec.ContainerEdits.NetDevices) != 0 {
153+
if len(spec.ContainerEdits.NetDevices) > 0 {
154154
return true
155155
}
156156

@@ -161,7 +161,7 @@ func requiresV110(spec *Spec) bool {
161161
}
162162
}
163163

164-
if len(dev.ContainerEdits.NetDevices) != 0 {
164+
if len(dev.ContainerEdits.NetDevices) > 0 {
165165
return true
166166
}
167167
}

0 commit comments

Comments
 (0)