mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #27624 from erxian/remove-duplicate-err-judgement
remove duplicated error judgement in cluster.go
This commit is contained in:
commit
09985ad897
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