Skip to content

Commit

Permalink
change switch single case to simple if
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Pagotto <pagottoo@gmail.com>
  • Loading branch information
pagottoo committed Jul 25, 2022
1 parent 5e73de5 commit 84a371f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,7 @@ func PutTagKubefirstOnBuckets(bucketName, clusterName string) {
_, err := svc.PutBucketTagging(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
default:
log.Println(aerr.Error())
}
log.Println(aerr.Error())
} else {
log.Println(err.Error())
}
Expand Down

0 comments on commit 84a371f

Please sign in to comment.