mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
chore: deps
This commit is contained in:
@@ -7,9 +7,7 @@ import type { RequestOptions } from '../REST.js';
|
||||
import { RequestMethod } from '../RequestManager.js';
|
||||
|
||||
export function parseHeader(header: string[] | string | undefined): string | undefined {
|
||||
if (header === undefined) {
|
||||
return header;
|
||||
} else if (typeof header === 'string') {
|
||||
if (header === undefined || typeof header === 'string') {
|
||||
return header;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user