typo: correct variable name (#12837)

This commit is contained in:
Federico Ciardi 2021-02-20 22:03:24 +01:00 committed by GitHub
parent 72961e4564
commit 8316cdaa8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,12 +87,12 @@ export function explode(visitor) {
let aliases: Array<string> | undefined = t.FLIPPED_ALIAS_KEYS[nodeType];
const deprecratedKey = t.DEPRECATED_KEYS[nodeType];
if (deprecratedKey) {
const deprecatedKey = t.DEPRECATED_KEYS[nodeType];
if (deprecatedKey) {
console.trace(
`Visitor defined for ${nodeType} but it has been renamed to ${deprecratedKey}`,
`Visitor defined for ${nodeType} but it has been renamed to ${deprecatedKey}`,
);
aliases = [deprecratedKey];
aliases = [deprecatedKey];
}
if (!aliases) continue;