mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-19 23:44:04 +02:00
feat(txtCondition): lint fix
This commit is contained in:
parent
b52e190677
commit
4037820dc8
1 changed files with 2 additions and 4 deletions
|
@ -41,9 +41,7 @@ class DnsMonitorType extends MonitorType {
|
|||
|
||||
case "TXT":
|
||||
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
||||
// Node.js resolveTxt brings an array of array
|
||||
let txtRecords = dnsRes.flat();
|
||||
conditionsResult = txtRecords.some(record => handleConditions({ record }));
|
||||
conditionsResult = dnsRes.flat().some(record => handleConditions({ record }));
|
||||
break;
|
||||
|
||||
case "CNAME":
|
||||
|
|
Loading…
Add table
Reference in a new issue