Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Sep 25, 2024
1 parent 93bd6de commit f929c90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/services/users/users_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ func usersDataSourceRead(ctx context.Context, d *pluginsdk.ResourceData, meta in
return tf.ErrorDiagPathF(err, "return_all", "No users found")
}

for _, u := range *resp.Model {
foundUsers = append(foundUsers, u)
}
foundUsers = append(foundUsers, *resp.Model...)

} else if upns, ok := d.Get("user_principal_names").([]interface{}); ok && len(upns) > 0 {
expectedCount = len(upns)
Expand Down

0 comments on commit f929c90

Please sign in to comment.