tools: avoid repeated subtree scans in must-call-assert · nodejs/node@14cc587 · GitHub
Skip to content

Commit 14cc587

Browse files
inoway46aduh95
authored andcommitted
tools: avoid repeated subtree scans in must-call-assert
Match the promise call chain before checking for a descendant return statement, preserving the existing lint checks. Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com> PR-URL: #66408 Refs: #64972 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com>
1 parent 11c3d71 commit 14cc587

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tools/eslint-rules/must-call-assert.js‎

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)