Skip to content

Commit

Permalink
rename var in helper
Browse files Browse the repository at this point in the history
  • Loading branch information
vandyliu committed Apr 10, 2024
1 parent ce58807 commit 40cac56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/utils/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func ObjectList[T any](ctx context.Context, values []T, objectAttributeTypes map
return types.ListNull(types.ObjectType{AttrTypes: objectAttributeTypes}), nil
}
objs := make([]attr.Value, len(values))
for i, envVar := range values {
obj, diags := transformer(ctx, envVar)
for i, value := range values {
obj, diags := transformer(ctx, value)
if diags.HasError() {
return types.List{}, diags
}
Expand Down

0 comments on commit 40cac56

Please sign in to comment.