aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/gcs
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gcs')
-rw-r--r--pkg/gcs/gcs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gcs/gcs.go b/pkg/gcs/gcs.go
index e8500ec2b..c9322b40d 100644
--- a/pkg/gcs/gcs.go
+++ b/pkg/gcs/gcs.go
@@ -143,7 +143,7 @@ func (c *client) DeleteFile(gcsFile string) error {
return err
}
err = c.client.Bucket(bucket).Object(filename).Delete(c.ctx)
- if err == storage.ErrObjectNotExist {
+ if errors.Is(err, storage.ErrObjectNotExist) {
return ErrFileNotFound
}
return err
@@ -155,7 +155,7 @@ func (c *client) FileExists(gcsFile string) (bool, error) {
return false, err
}
_, err = c.client.Bucket(bucket).Object(filename).Attrs(c.ctx)
- if err == storage.ErrObjectNotExist {
+ if errors.Is(err, storage.ErrObjectNotExist) {
return false, nil
} else if err != nil {
return false, err