Skip to content

Commit adce9cf

Browse files
committed
Revert "Merge pull request #15 from beam-cloud/np/fix-nil-error"
This reverts commit 4bdf470, reversing changes made to 2ed2e4b.
1 parent 4bdf470 commit adce9cf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/client.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,8 @@ func NewBlobCacheClient(ctx context.Context, cfg BlobCacheConfig) (*BlobCacheCli
126126
}
127127

128128
func (c *BlobCacheClient) Cleanup() error {
129-
if c.cfg.BlobFs.Enabled {
130-
if c.blobfsServer != nil {
131-
return c.blobfsServer.Unmount()
132-
}
129+
if c.cfg.BlobFs.Enabled && c.blobfsServer != nil {
130+
c.blobfsServer.Unmount()
133131
}
134132
return nil
135133
}

0 commit comments

Comments
 (0)