refactor: use errors.Is

This commit is contained in:
Derrick Hammer 2024-01-25 10:39:45 -05:00
parent f4b981f97f
commit a90344daf0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ func (s *StorageServiceImpl) createBucketIfNotExists(bucket string) error {
}
if err != nil {
if !strings.Contains(err.Error(), "bucket not found") {
if !errors.Is(err, api.ErrBucketNotFound) {
return err
}
}