Address unused error, reported by ineffassign

minikube/cmd/minikube/cmd/env.go
    Line 330: warning: ineffectual assignment to err (ineffassign)
pull/3841/head
Anders F Björklund 2019-03-10 13:41:19 +01:00
parent dabe7665f2
commit 61dd4ab1fd
1 changed files with 3 additions and 0 deletions

View File

@ -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`)
}