From 8c1182852900cb5b558844940b7fc279dbb192ea Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Sun, 19 Jun 2022 16:04:42 +0200 Subject: [PATCH] lint, again Signed-off-by: Sam Therapy --- args.ts | 1 - lib/utils.ts | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/args.ts b/args.ts index 608612e..77c0cbf 100644 --- a/args.ts +++ b/args.ts @@ -1,4 +1,3 @@ - import { Args } from "./deps.ts"; import { isRecordType, ServerOptions } from "./lib/utils.ts"; /** diff --git a/lib/utils.ts b/lib/utils.ts index 0ce5b53..68ece48 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -24,9 +24,12 @@ export type ServerOptions = { }; export function isRecordType(type: string): type is Deno.RecordType { - return type.toUpperCase() === "A" || type.toUpperCase() === "AAAA" || type.toUpperCase() === "CNAME" || type.toUpperCase() === "MX" || - type.toUpperCase() === "NS" || type.toUpperCase() === "PTR" || type.toUpperCase() === "SOA" || type.toUpperCase() === "TXT" || - type.toUpperCase() === "NAPTR" || type.toUpperCase() === "SRV" || type.toUpperCase() === "CAA"; + return type.toUpperCase() === "A" || type.toUpperCase() === "AAAA" || + type.toUpperCase() === "CNAME" || type.toUpperCase() === "MX" || + type.toUpperCase() === "NS" || type.toUpperCase() === "PTR" || + type.toUpperCase() === "SOA" || type.toUpperCase() === "TXT" || + type.toUpperCase() === "NAPTR" || type.toUpperCase() === "SRV" || + type.toUpperCase() === "CAA"; } /**