fix: remove unreachable ?? operator in references_store_sub

The === comparison already returns a boolean, so ?? false is unreachable.
Fixes lint and TSGo CI failures.
pull/17637/head
frankfmy 3 weeks ago
parent a2df7336af
commit 3624db9d01

@ -20,7 +20,7 @@ function references_store_sub(node, scope) {
if (!node || typeof node !== 'object' || !('type' in node)) return false;
if (node.type === 'Identifier') {
return scope.get(/** @type {string} */ (/** @type {Identifier} */ (node).name))?.kind === 'store_sub' ?? false;
return scope.get(/** @type {string} */ (/** @type {Identifier} */ (node).name))?.kind === 'store_sub';
}
for (const key of Object.keys(node)) {

Loading…
Cancel
Save