We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57618ca commit ff8901bCopy full SHA for ff8901b
internal/s3util/s3util.go
@@ -19,12 +19,9 @@ import (
19
// IsNotExist reports whether err is an error indicating the requested resource
20
// was not found, taking into account S3 and standard library types.
21
func IsNotExist(err error) bool {
22
- var notFound *types.NotFound
23
- if errors.As(err, ¬Found) {
24
- return true
25
- }
26
- var noSuchKey *types.NoSuchKey
27
- if errors.As(err, &noSuchKey) {
+ var e1 *types.NotFound
+ var e2 *types.NoSuchKey
+ if errors.As(err, &e1) || errors.As(err, &e2) {
28
return true
29
}
30
return errors.Is(err, os.ErrNotExist)
0 commit comments