Skip to content

Commit a8fea1b

Browse files
committed
init map
1 parent 7b19699 commit a8fea1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/data_source_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func (d *dataSourceTFEProject) Read(ctx context.Context, req datasource.ReadRequ
189189

190190
// Store GET /workspaces response in a map to ensure uniqueness
191191
// key: workspaceID, value: workspaceName
192-
var workspaces map[string]string
192+
workspaces := make(map[string]string)
193193
for {
194194
wl, err := d.config.Client.Workspaces.List(ctx, organization, readOptions)
195195
if err != nil {

0 commit comments

Comments
 (0)