Skip to content

Commit 3c04457

Browse files
committed
Remove duplicate PageInfo struct
Signed-off-by: Timo Sand <[email protected]>
1 parent 526c9c9 commit 3c04457

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

github/data_source_github_organization_ip_allow_list.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ func dataSourceGithubOrganizationIpAllowListRead(d *schema.ResourceData, meta an
5858
client := meta.(*Owner).v4client
5959
orgName := meta.(*Owner).name
6060

61-
type PageInfo struct {
62-
StartCursor githubv4.String
63-
EndCursor githubv4.String
64-
HasNextPage githubv4.Boolean
65-
HasPreviousPage githubv4.Boolean
66-
}
67-
6861
type IpAllowListEntry struct {
6962
ID githubv4.String
7063
Name githubv4.String

github/util_v4.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import (
66
)
77

88
type PageInfo struct {
9-
EndCursor githubv4.String
10-
HasNextPage bool
9+
StartCursor githubv4.String
10+
EndCursor githubv4.String
11+
HasNextPage githubv4.Boolean
12+
HasPreviousPage githubv4.Boolean
1113
}
1214

1315
func expandNestedSet(m map[string]any, target string) []string {

0 commit comments

Comments
 (0)