Skip to content

Commit

Permalink
fix: return empty list when no branch exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Feb 13, 2024
1 parent 60f16c8 commit ca68e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/branch_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (d *BranchDataSource) Read(ctx context.Context, req datasource.ReadRequest,
return
}

var branches []BranchDataSourceModel
branches := make([]BranchDataSourceModel, 0)
for _, branch := range *httpResp.JSON200 {
if branch.IsDefault {
continue
Expand Down

0 comments on commit ca68e2e

Please sign in to comment.