mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 19:13:31 +01:00
chore: remove usage of the prefer-global rules (#11279)
This commit is contained in:
committed by
GitHub
parent
548d75258b
commit
9bf1f739e0
@@ -1,4 +1,3 @@
|
||||
import type { URL } from 'node:url';
|
||||
import type { Snowflake } from 'discord-api-types/globals';
|
||||
|
||||
/**
|
||||
@@ -687,7 +686,6 @@ export function email<Email extends string>(
|
||||
*/
|
||||
export function email<Email extends string>(email: Email, headers?: Record<string, string | readonly string[]>) {
|
||||
if (headers) {
|
||||
// eslint-disable-next-line n/prefer-global/url-search-params
|
||||
const searchParams = new URLSearchParams(
|
||||
Object.fromEntries(Object.entries(headers).map(([key, value]) => [key.toLowerCase(), value])),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user