remove duplicated error judgement in cluster.go
Signed-off-by: erxian <evelynhsu21@gmail.com> Upstream-commit: 75c51ad76b0b5995e9349cb369c9e8664f40855c Component: engine
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user