libpod: fix wastedassign warning on freebsd

This one:

> libpod/container_internal_freebsd.go:255:2: assigned to foundUTS, but reassigned without using the value (wastedassign)
> 	foundUTS := false
> 	^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-04-01 15:02:20 -07:00
parent 30fd68cb23
commit 8c0c1c8906

View File

@ -255,10 +255,9 @@ func (c *Container) addSharedNamespaces(g *generate.Generator) error {
// the user (already present in OCI spec). If we don't have a UTS ns,
// set it to the host's hostname instead.
hostname := c.Hostname()
foundUTS := false
// TODO: make this optional, needs progress on adding FreeBSD section to the spec
foundUTS = true
foundUTS := true
g.SetHostname(hostname)
if !foundUTS {