Add return value assignments
This commit is contained in:
parent
f390c186e6
commit
10dba44638
@ -131,7 +131,10 @@ var stopCmd = &cli.Command{
|
|||||||
ctx := lcli.ReqContext(cctx)
|
ctx := lcli.ReqContext(cctx)
|
||||||
|
|
||||||
// Detach any storage associated with this worker
|
// Detach any storage associated with this worker
|
||||||
api.StorageDetachAll(ctx)
|
err = api.StorageDetachAll(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
err = api.Shutdown(ctx)
|
err = api.Shutdown(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -154,7 +154,10 @@ func (w *Worker) StorageDetachAll(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, lp := range lps {
|
for _, lp := range lps {
|
||||||
w.LocalStore.ClosePath(ctx, lp.ID)
|
err = w.LocalStore.ClosePath(ctx, lp.ID)
|
||||||
|
if err != nil {
|
||||||
|
return xerrors.Errorf("unable to close path: %w", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user