Skip to content

Commit 8d50f87

Browse files
committed
fix lint
1 parent 70271a4 commit 8d50f87

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

internal/services/domain/domains_registration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func resourceDomainsRegistrationsRead(ctx context.Context, d *schema.ResourceDat
480480
}
481481

482482
firstDomain := domainNames[0]
483-
483+
484484
firstResp, err := registrarAPI.GetDomain(&domain.RegistrarAPIGetDomainRequest{
485485
Domain: firstDomain,
486486
}, scw.WithContext(ctx))

internal/services/domain/domains_registration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestAccDomainRegistration_SingleDomainWithUpdate(t *testing.T) {
1717
tt := acctest.NewTestTools(t)
1818
defer tt.Cleanup()
1919

20-
singleDomain := "test-single-updates35" + ".com" // à adapter
20+
singleDomain := "test-single-updates35" + ".com"
2121

2222
resource.ParallelTest(t, resource.TestCase{
2323
PreCheck: func() { acctest.PreCheck(t) },
@@ -169,6 +169,7 @@ func testAccCheckDomainStatus(tt *acctest.TestTools, expectedAutoRenew, expected
169169
}
170170

171171
registrarAPI := domain.NewRegistrarDomainAPI(tt.Meta)
172+
172173
domainNames, err := domain.ExtractDomainsFromTaskID(context.TODO(), rs.Primary.ID, registrarAPI)
173174
if err != nil {
174175
return fmt.Errorf("error extracting domains: %w", err)

internal/services/domain/helpers.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ func expandContactExtension(extensionMap map[string]interface{}, extensionType s
162162

163163
case "nl":
164164
legalFormRegistrationNumber := ""
165-
if value, ok := extensionMap["legal_form_registration_number"]; ok {
166-
if str, isString := value.(string); isString {
165+
value, ok := extensionMap["legal_form_registration_number"]
166+
167+
if ok {
168+
str, isString := value.(string)
169+
if isString {
167170
legalFormRegistrationNumber = str
168171
}
169172
}
@@ -341,7 +344,6 @@ func getStatusTasks(ctx context.Context, api *domain.RegistrarAPI, taskID string
341344
Page: &page,
342345
PageSize: &pageSize,
343346
}, scw.WithContext(ctx))
344-
345347
if err != nil {
346348
return "", fmt.Errorf("error retrieving tasks: %w", err)
347349
}

0 commit comments

Comments
 (0)