Skip to content

Commit

Permalink
Update get_records.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Oct 21, 2024
1 parent 1894415 commit e2c882c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request/url/parser/get_records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function getRecords(url : URL) : DnsRecord[] {
throw new MissingURLParameterKeyError(key)
}

if (records.length) {
if (records.length === 0) {
throw new MissingURLParameterValueError(key)
}

Expand Down

0 comments on commit e2c882c

Please sign in to comment.