Skip to content

Commit 2802e52

Browse files
committed
fix lint
1 parent 4f3128b commit 2802e52

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

pkg/connector/connector.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ func (gh *GitHub) validateAppCredentials(ctx context.Context) (annotations.Annot
168168
}
169169

170170
type getAllInstallationsResp struct {
171-
installationIds map[int64]*github.Installation
172-
accountIds map[int64]struct{}
171+
installationIDs map[int64]*github.Installation
172+
accountIDs map[int64]struct{}
173173
accountNames map[string]struct{}
174174
}
175175

@@ -203,8 +203,8 @@ func getAllInstallations(ctx context.Context, c *github.Client) (getAllInstallat
203203
page = resp.NextPage
204204
}
205205
return getAllInstallationsResp{
206-
installationIds: installationsIDToInstallation,
207-
accountIds: AccountIDMap,
206+
installationIDs: installationsIDToInstallation,
207+
accountIDs: AccountIDMap,
208208
accountNames: AccountNameMap,
209209
}, nil
210210
}
@@ -292,10 +292,10 @@ func newAppClient(ctx context.Context, ghc *cfg.Github) (gitHubApp, error) {
292292
}
293293

294294
var (
295-
installationsClient = make(map[int64]*github.Client, len(iResp.installationIds))
296-
installationsGLClient = make(map[int64]*githubv4.Client, len(iResp.accountIds))
295+
installationsClient = make(map[int64]*github.Client, len(iResp.installationIDs))
296+
installationsGLClient = make(map[int64]*githubv4.Client, len(iResp.accountIDs))
297297
)
298-
for id, installation := range iResp.installationIds {
298+
for id, installation := range iResp.installationIDs {
299299
c, glc, err := getInstallationClient(ctx, ghc.InstanceUrl, id, token)
300300
if err != nil {
301301
return gitHubApp{}, err

pkg/connector/org.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,5 +467,4 @@ func (o *orgResourceType) listOrganizationsFromAppInstallations(
467467
}
468468

469469
return ret, pageToken, reqAnnos, nil
470-
471470
}

0 commit comments

Comments
 (0)