chore: use `some`

pull/11905/head
paoloricciuti 2 years ago
parent 5b723bbe7d
commit 6185ff3847

@ -1244,11 +1244,9 @@ const common_visitors = {
context.state.expression.metadata.dynamic = true;
}
const is_exported =
binding.references.find(
(reference) =>
reference.path.find((path_item) => path_item.type === 'ExportSpecifier') !== undefined
) !== undefined;
const is_exported = binding.references.some((reference) =>
reference.path.some((path_item) => path_item.type === 'ExportSpecifier')
);
if (
context.state.analysis.runes &&

Loading…
Cancel
Save