Explorar el Código

remove duplicated error judgement in cluster.go

Signed-off-by: erxian <evelynhsu21@gmail.com>
Evelynhsu hace 8 años
padre
commit
75c51ad76b
Se han modificado 1 ficheros con 0 adiciones y 4 borrados
  1. 0 4
      daemon/cluster/cluster.go

+ 0 - 4
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
 }