mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
remove redundant code and better error msg
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
@@ -8,10 +8,6 @@ import (
|
||||
// SwarmUnlock unlockes locked swarm.
|
||||
func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error {
|
||||
serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ensureReaderClosed(serverResp)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user