Skip to content

Commit

Permalink
chore: refactor error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
haristhohir committed Jun 12, 2024
1 parent af4b368 commit bfc0786
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gcs_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ func (g gcsManager) DeleteAllFilesInDirectory(bucketName, directory string) erro

for {
attrs, err := it.Next()
if err == storage.ErrObjectNotExist {
break
}
if err != nil {
if err == storage.ErrObjectNotExist {
break
}

return err
}

Expand Down

0 comments on commit bfc0786

Please sign in to comment.