Nit: Use ?. in the example used by the proposal readme (#10604)

This commit is contained in:
Nicolò Ribaudo 2019-10-29 18:35:15 +01:00 committed by GitHub
parent be0fcaaf49
commit f47fbd5f39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,9 +91,7 @@ You can turn on the 'throwIfNamespace' flag to bypass this warning.`,
value.value = value.value.replace(/\n\s+/g, " "); value.value = value.value.replace(/\n\s+/g, " ");
// "raw" JSXText should not be used from a StringLiteral because it needs to be escaped. // "raw" JSXText should not be used from a StringLiteral because it needs to be escaped.
if (value.extra && value.extra.raw) { delete value.extra?.raw;
delete value.extra.raw;
}
} }
if (t.isJSXNamespacedName(node.name)) { if (t.isJSXNamespacedName(node.name)) {