Skip to content

Commit

Permalink
Fix reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Jan 1, 2024
1 parent d8f1301 commit 2f27f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/subcmd/s3hub/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (l *lsCmd) Do() error {
default:
return errors.New("invalid mode: please report this bug: https://github.com/nao1215/rainbow")
}

}

// printBucket prints buckets.
Expand Down Expand Up @@ -109,6 +108,9 @@ func (l *lsCmd) printObject() error {
listS3Objects, err := l.s3hub.S3BucketObjectsLister.ListS3BucketObjects(l.ctx, &usecase.S3BucketObjectsListerInput{
Bucket: l.bucket,
})
if err != nil {
return err
}

l.printf("[S3Objects (profile=%s)]\n", l.profile.String())
if len(listS3Objects.Objects) == 0 {
Expand Down

0 comments on commit 2f27f2c

Please sign in to comment.