Skip to content

Commit

Permalink
Correctly ignore error wrapping ErrNotSupported
Browse files Browse the repository at this point in the history
Signed-off-by: Paul "TBBle" Hampson <[email protected]>
  • Loading branch information
TBBle committed Aug 10, 2022
1 parent 5ad51c7 commit 1ee38b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package continuity

import (
"bytes"
"errors"
"fmt"
"io"
"os"
Expand Down Expand Up @@ -151,7 +152,7 @@ func (c *context) Resource(p string, fi os.FileInfo) (Resource, error) {
}

base.xattrs, err = c.resolveXAttrs(fp, fi, base)
if err != nil && err != ErrNotSupported {
if err != nil && !errors.Is(err, ErrNotSupported) {
return nil, err
}

Expand Down

0 comments on commit 1ee38b5

Please sign in to comment.