mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-03-11 17:24:09 +00:00
refactor: Rename variables and add needed comments
- https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/265
This commit is contained in:
parent
2836ce4870
commit
40c423437a
2 changed files with 6 additions and 3 deletions
lib
|
@ -133,10 +133,10 @@ class CloudflareDnsProvider extends DnsProvider {
|
|||
|
||||
/// Remove all records that do not match with SelfPrivacy
|
||||
cloudflareRecords.removeWhere(
|
||||
(final oceanRecord) => !selfprivacyRecords.any(
|
||||
(final cloudflareRecord) => !selfprivacyRecords.any(
|
||||
(final selfprivacyRecord) =>
|
||||
selfprivacyRecord.type == oceanRecord.type &&
|
||||
selfprivacyRecord.name == oceanRecord.name,
|
||||
selfprivacyRecord.type == cloudflareRecord.type &&
|
||||
selfprivacyRecord.name == cloudflareRecord.name,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
@ -122,6 +122,9 @@ List<DnsRecord> getProjectDnsRecords(
|
|||
ttl: 18000,
|
||||
);
|
||||
|
||||
/// We never create this record!
|
||||
/// This declaration is only for removal
|
||||
/// as we need to compare by 'type' and 'name'
|
||||
final DnsRecord txt3 = DnsRecord(
|
||||
type: 'TXT',
|
||||
name: 'selector._domainkey',
|
||||
|
|
Loading…
Add table
Reference in a new issue