lint, again
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
19aac80ce7
commit
8c11828529
2 changed files with 6 additions and 4 deletions
1
args.ts
1
args.ts
|
@ -1,4 +1,3 @@
|
|||
|
||||
import { Args } from "./deps.ts";
|
||||
import { isRecordType, ServerOptions } from "./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";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue