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 2d3cae2 commit d8ff503
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 @@ -369,10 +369,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 d8ff503

Please sign in to comment.