Skip to content

Commit

Permalink
Return err instead of nil to get error from the defer func.
Browse files Browse the repository at this point in the history
Co-authored-by: David Christofas <[email protected]>
  • Loading branch information
dragotin and C0rby authored Feb 17, 2022
1 parent ab703f0 commit d941ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/utils/decomposedfs/xattrs/xattrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,5 @@ func All(filePath string) (attribs map[string]string, err error) {
err = errors.New("Failed to read all xattrs")
}

return attribs, nil
return attribs, err
}

0 comments on commit d941ae0

Please sign in to comment.