diff --git a/daemon/cluster/cluster.go b/daemon/cluster/cluster.go index 3973817ce4..352c8f5149 100644 --- a/daemon/cluster/cluster.go +++ b/daemon/cluster/cluster.go @@ -632,10 +632,6 @@ func (c *Cluster) Inspect() (types.Swarm, error) { return types.Swarm{}, err } - if err != nil { - return types.Swarm{}, err - } - return convert.SwarmFromGRPC(*swarm), nil }