From 2f27f2cd8ce4d111ea23baf73b7a51436bbfb8a1 Mon Sep 17 00:00:00 2001 From: CHIKAMATSU Naohiro Date: Mon, 1 Jan 2024 15:52:53 +0900 Subject: [PATCH] Fix reviewdog --- cmd/subcmd/s3hub/ls.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/subcmd/s3hub/ls.go b/cmd/subcmd/s3hub/ls.go index ac6086f..10d5683 100644 --- a/cmd/subcmd/s3hub/ls.go +++ b/cmd/subcmd/s3hub/ls.go @@ -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. @@ -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 {