Skip to content

Commit 8c0c1c8

Browse files
committed
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 <[email protected]>
1 parent 30fd68c commit 8c0c1c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libpod/container_internal_freebsd.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,9 @@ func (c *Container) addSharedNamespaces(g *generate.Generator) error {
255255
// the user (already present in OCI spec). If we don't have a UTS ns,
256256
// set it to the host's hostname instead.
257257
hostname := c.Hostname()
258-
foundUTS := false
259258

260259
// TODO: make this optional, needs progress on adding FreeBSD section to the spec
261-
foundUTS = true
260+
foundUTS := true
262261
g.SetHostname(hostname)
263262

264263
if !foundUTS {

0 commit comments

Comments
 (0)