Skip to content

Commit

Permalink
implement review remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jan 17, 2022
1 parent 94ca711 commit 9ec6523
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/storage/utils/decomposedfs/spaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,8 @@ func (fs *Decomposedfs) DeleteStorageSpace(ctx context.Context, req *provider.De
if len(matches) != 1 {
return fmt.Errorf("delete space failed: found %d matching spaces", len(matches))
}
if err := os.RemoveAll(matches[0]); err != nil {
return err
}
return nil

return os.RemoveAll(matches[0])
}

spaceID := req.Id.OpaqueId
Expand Down

0 comments on commit 9ec6523

Please sign in to comment.