Skip to content

Commit e2c882c

Browse files
committed
Update get_records.ts
1 parent 1894415 commit e2c882c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/request/url/parser/get_records.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function getRecords(url : URL) : DnsRecord[] {
2222
throw new MissingURLParameterKeyError(key)
2323
}
2424

25-
if (records.length) {
25+
if (records.length === 0) {
2626
throw new MissingURLParameterValueError(key)
2727
}
2828

0 commit comments

Comments
 (0)