Commit a11d07c
authored
Fix for Superfluous trailing arguments (#6)
To fix this, update the call to `isDocumentWrite` so it matches the
function’s expected arity by removing the extra trailing `checker`
argument.
Best single fix without changing functionality:
- In `internal/codeguard/checks/support/typescript_semantic_runner.js`,
inside `analyzeCallExpression` around line 923, change:
- `isDocumentWrite(node.expression, checker)`
- to `isDocumentWrite(node.expression)`
This preserves runtime behavior (since extra args were ignored) while
resolving the CodeQL issue and improving call clarity. No imports, new
methods, or definitions are needed.
_Suggested fixes powered by Copilot Autofix. Review carefully before
merging._1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| |||
0 commit comments