Skip to content

Commit

Permalink
Merge pull request #242 from Abirdcfly/patch-1
Browse files Browse the repository at this point in the history
fix minor unreachable code caused by ox.Exit
  • Loading branch information
lucagrulla authored Aug 10, 2022
2 parents 138fcd0 + 1d9d805 commit cd41ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudwatch/lsgroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func LsGroups(cwc *cloudwatchlogs.Client) <-chan *string {
res, err := paginator.NextPage(context.TODO())
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
close(ch)
os.Exit(1)
}
for _, logGroup := range res.LogGroups {
ch <- logGroup.LogGroupName
Expand Down

0 comments on commit cd41ca1

Please sign in to comment.