In createReexecCmd (cmd/urunc/create.go), the log level env var is gated on a condition that can never be false:
logLevel := strconv.Itoa(int(logrus.GetLevel()))
if logLevel != "" {
reexecCommand.Env = append(reexecCommand.Env, "_LIBCONTAINER_LOGLEVEL="+logLevel)
}
strconv.Itoa always returns a non-empty string . so logLevel != "" is always true and the guard is dead code
not a functionality bug only a cleanup issue .
In createReexecCmd (cmd/urunc/create.go), the log level env var is gated on a condition that can never be false:
strconv.Itoa always returns a non-empty string . so logLevel != "" is always true and the guard is dead code
not a functionality bug only a cleanup issue .