mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
pkg/specgen/generate: fix S1002 on freebsd
> pkg/specgen/generate/namespaces_freebsd.go:60:9: S1002: should omit comparison to bool constant, can be simplified to !jail.NeedVnetJail() (staticcheck) > return jail.NeedVnetJail() == false > ^ Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -57,5 +57,5 @@ func specConfigureNamespaces(s *specgen.SpecGenerator, g *generate.Generator, rt
|
||||
// only if we can initialise the network after the OCI container is created -
|
||||
// the OCI container will own the vnet in this case.
|
||||
func needPostConfigureNetNS(s *specgen.SpecGenerator) bool {
|
||||
return jail.NeedVnetJail() == false
|
||||
return !jail.NeedVnetJail()
|
||||
}
|
||||
|
Reference in New Issue
Block a user