mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
chore: bump dependencies (#11225)
This commit is contained in:
@@ -176,7 +176,7 @@ export class TypeScriptHelpers {
|
||||
}
|
||||
|
||||
// If we ran out of items, or if the kind doesn't match, then fail
|
||||
if (!current || current.kind !== parentKind) {
|
||||
if (current?.kind !== parentKind) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -956,10 +956,8 @@ export class Collector {
|
||||
declaration,
|
||||
ts.SyntaxKind.VariableStatement,
|
||||
) as ts.VariableStatement | undefined;
|
||||
if (
|
||||
statement !== undefined && // For a compound declaration, fall back to looking for C instead of A
|
||||
statement.declarationList.declarations.length === 1
|
||||
) {
|
||||
// For a compound declaration, fall back to looking for C instead of A
|
||||
if (statement?.declarationList.declarations.length === 1) {
|
||||
nodeForComment = statement;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user