Skip to content

Commit ca4a396

Browse files
committed
Small tweak
1 parent 728fa6e commit ca4a396

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

github/table_github_branch_protection.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,7 @@ func tableGitHubRepositoryBranchProtectionGet(ctx context.Context, d *plugin.Que
7575
return detail, err
7676
}
7777

78-
protection, _ := getGitHubItem(ctx, d, h, getDetails)
79-
80-
if protection != nil {
81-
d.StreamLeafListItem(ctx, protection)
82-
}
83-
84-
return nil, nil
78+
return streamGitHubListOrItem(ctx, d, h, getDetails)
8579
}
8680

8781
func branchNameQual(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (interface{}, error) {

0 commit comments

Comments
 (0)