Skip to content

Commit

Permalink
fix: syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
  • Loading branch information
tczhao committed Jun 2, 2024
1 parent 30b70c6 commit cdcb8ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workflow/artifacts/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (s3Driver *ArtifactDriver) Delete(artifact *wfv1.Artifact) error {
if !isDir {
return s3cli.Delete(artifact.S3.Bucket, artifact.S3.Key)
}

keys, err := s3cli.ListDirectory(artifact.S3.Bucket, artifact.S3.Key)
if err != nil {
return fmt.Errorf("unable to list files in %s: %s", artifact.S3.Key, err)
Expand All @@ -200,8 +200,7 @@ func (s3Driver *ArtifactDriver) Delete(artifact *wfv1.Artifact) error {
return err
}
}
}
return nil
return nil
})

return err
Expand Down

0 comments on commit cdcb8ab

Please sign in to comment.