Add return value assignments
This commit is contained in:
parent
dfb691b14a
commit
500f71c344
@ -131,7 +131,10 @@ var stopCmd = &cli.Command{
|
||||
ctx := lcli.ReqContext(cctx)
|
||||
|
||||
// Detach any storage associated with this worker
|
||||
api.StorageDetachAll(ctx)
|
||||
err = api.StorageDetachAll(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = api.Shutdown(ctx)
|
||||
if err != nil {
|
||||
|
@ -154,7 +154,10 @@ func (w *Worker) StorageDetachAll(ctx context.Context) error {
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user