mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
remove duplicated error judgement in cluster.go
Signed-off-by: erxian <evelynhsu21@gmail.com>
This commit is contained in:
parent
bc52939b04
commit
75c51ad76b
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue