Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Feb 1, 2024
1 parent 52f69fa commit 8bc484f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions env0/data_projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func dataProjects() *schema.Resource {
func dataProjectsRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {
apiClient := meta.(client.ApiClientInterface)

includedArchivedProjects := d.Get("include_archived_projects").(bool)
includeArchivedProjects := d.Get("include_archived_projects").(bool)

projects, err := apiClient.Projects()
if err != nil {
Expand All @@ -69,7 +69,7 @@ func dataProjectsRead(ctx context.Context, d *schema.ResourceData, meta interfac

filteredProjects := []client.Project{}
for _, project := range projects {
if includedArchivedProjects || !project.IsArchived {
if includeArchivedProjects || !project.IsArchived {
filteredProjects = append(filteredProjects, project)
}
}
Expand Down

0 comments on commit 8bc484f

Please sign in to comment.