Skip to content

Commit

Permalink
Remove redundant error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Baker <liam.baker@starlingbank.com>
  • Loading branch information
Liam Baker authored and poiana committed Dec 23, 2021
1 parent d63e920 commit 0c512ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions outputs/aws.go
Expand Up @@ -69,10 +69,6 @@ func NewAWSClient(config *types.Configuration, stats *types.Statistics, promStat
sess = session.Must(session.NewSessionWithOptions(session.Options{
SharedConfigState: session.SharedConfigEnable,
}))
if err != nil {
log.Printf("[ERROR] : AWS - %v\n", "Error while creating AWS Session")
return nil, errors.New("Error while creating AWS Session")
}
}

_, err = sts.New(sess).GetCallerIdentity(&sts.GetCallerIdentityInput{})
Expand Down

0 comments on commit 0c512ff

Please sign in to comment.