Skip to content

Commit 7d2138d

Browse files
committed
fix: lint
1 parent 3b21dc7 commit 7d2138d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

sentry/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func expandStringList(configured []interface{}) []string {
7878
// `false`, `err` => encountered an unexpected error
7979
func checkClientGet(resp *sentry.Response, err error, d *schema.ResourceData) (bool, error) {
8080
if err != nil {
81-
if resp != nil && resp.Response.StatusCode == http.StatusNotFound {
81+
if resp != nil && resp.StatusCode == http.StatusNotFound {
8282
d.SetId("")
8383
return false, nil
8484
}

sentry/resource_sentry_organization_code_mappings.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ func resourceSentryOrganizationCodeMappingRead(ctx context.Context, d *schema.Re
120120
// query does a fuzzy match on name
121121
var orgCodeMappings []*sentry.OrganizationCodeMapping
122122
params := &sentry.ListOrganizationCodeMappingsParams{
123-
ListCursorParams: sentry.ListCursorParams{},
124-
IntegrationId: integrationId,
123+
IntegrationId: integrationId,
125124
}
126125
for {
127126
keys, resp, err := client.OrganizationCodeMappings.List(ctx, org, params)
@@ -134,7 +133,7 @@ func resourceSentryOrganizationCodeMappingRead(ctx context.Context, d *schema.Re
134133
if resp.Cursor == "" {
135134
break
136135
}
137-
params.ListCursorParams.Cursor = resp.Cursor
136+
params.Cursor = resp.Cursor
138137
}
139138

140139
// filter for first exactly matching name

sentry/resource_sentry_organization_repository_github.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ func resourceSentryOrganizationRepositoryGithubRead(ctx context.Context, d *sche
109109
// query does a fuzzy match on name
110110
var orgRepos []*sentry.OrganizationRepository
111111
params := &sentry.ListOrganizationRepositoriesParams{
112-
ListCursorParams: sentry.ListCursorParams{},
113-
Query: id,
112+
Query: id,
114113
}
115114
for {
116115
keys, resp, err := client.OrganizationRepositories.List(ctx, org, params)
@@ -123,7 +122,7 @@ func resourceSentryOrganizationRepositoryGithubRead(ctx context.Context, d *sche
123122
if resp.Cursor == "" {
124123
break
125124
}
126-
params.ListCursorParams.Cursor = resp.Cursor
125+
params.Cursor = resp.Cursor
127126
}
128127

129128
tflog.Debug(ctx, "Reading Sentry Github Organization Repository", map[string]interface{}{

0 commit comments

Comments
 (0)