Skip to content

Commit d8efdbe

Browse files
committed
fix(dns): satisfy golines on record import empty result error
1 parent eacdd2d commit d8efdbe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/namespaces/domain/v2beta1/custom_record_import.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ func dnsRecordImportRun(ctx context.Context, argsI any) (any, error) {
160160
return nil, err
161161
}
162162
if len(records) == 0 {
163-
return nil, fmt.Errorf("no records to import after parsing (SOA/apex NS are skipped in bind format)")
163+
return nil, errors.New(
164+
"no records to import after parsing " +
165+
"(SOA/apex NS are skipped in bind format)",
166+
)
164167
}
165168

166169
apiCalls := 0

0 commit comments

Comments
 (0)