Use ?. where it represents the intended semantics (#11512)
This commit is contained in:
@@ -147,7 +147,7 @@ export function ImportDeclaration(node: Object) {
|
||||
}
|
||||
|
||||
const specifiers = node.specifiers.slice(0);
|
||||
if (specifiers && specifiers.length) {
|
||||
if (specifiers?.length) {
|
||||
// print "special" specifiers first
|
||||
for (;;) {
|
||||
const first = specifiers[0];
|
||||
|
||||
Reference in New Issue
Block a user