Skip to content

Commit ca68e2e

Browse files
committed
fix: return empty list when no branch exists
1 parent 60f16c8 commit ca68e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/branch_data_source.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (d *BranchDataSource) Read(ctx context.Context, req datasource.ReadRequest,
116116
return
117117
}
118118

119-
var branches []BranchDataSourceModel
119+
branches := make([]BranchDataSourceModel, 0)
120120
for _, branch := range *httpResp.JSON200 {
121121
if branch.IsDefault {
122122
continue

0 commit comments

Comments
 (0)