Address unused error, reported by ineffassign
minikube/cmd/minikube/cmd/env.go Line 330: warning: ineffectual assignment to err (ineffassign)pull/3841/head
parent
dabe7665f2
commit
61dd4ab1fd
|
@ -328,6 +328,9 @@ var dockerEnvCmd = &cobra.Command{
|
|||
exit.WithCode(exit.Unavailable, `The docker host is currently not running`)
|
||||
}
|
||||
docker, err := GetDockerActive(host)
|
||||
if err != nil {
|
||||
exit.WithError("Error getting service status", err)
|
||||
}
|
||||
if !docker {
|
||||
exit.WithCode(exit.Unavailable, `The docker service is currently not active`)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue