Skip to content

Commit

Permalink
Fix semgrep 'ci.helper-schema-Set-extraneous-expandStringList-with-Li…
Browse files Browse the repository at this point in the history
…st'.
  • Loading branch information
ewbankkit committed Jun 5, 2023
1 parent 19adb86 commit 4f2f304
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,10 @@ func dataSourcePrincipalPolicySimulationRead(ctx context.Context, d *schema.Reso
conn := meta.(*conns.AWSClient).IAMConn()

setAsAWSStringSlice := func(raw interface{}) []*string {
listOfInterface := raw.(*schema.Set).List()
if len(listOfInterface) == 0 {
if raw.(*schema.Set).Len() == 0 {
return nil
}
return flex.ExpandStringList(listOfInterface)
return flex.ExpandStringSet(raw.(*schema.Set))
}

input := &iam.SimulatePrincipalPolicyInput{
Expand Down

0 comments on commit 4f2f304

Please sign in to comment.