Skip to content

Commit bf1fd83

Browse files
committed
fix typo in predicate name
1 parent b741a65 commit bf1fd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/src/Declarations/SuspiciousMethodNameDeclaration.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import javascript
1616
/**
1717
* Holds if the method name on the given container is likely to be a mistake.
1818
*/
19-
predicate isSuspisousMethodName(string name, ClassOrInterface container) {
19+
predicate isSuspiciousMethodName(string name, ClassOrInterface container) {
2020
name = "function"
2121
or
2222
// "constructor" is only suspicious outside a class.
@@ -30,7 +30,7 @@ from MethodDeclaration member, ClassOrInterface container, string name, string m
3030
where
3131
container.getLocation().getFile().getFileType().isTypeScript() and
3232
container.getMember(name) = member and
33-
isSuspisousMethodName(name, container) and
33+
isSuspiciousMethodName(name, container) and
3434

3535
// Cases to ignore.
3636
not (

0 commit comments

Comments
 (0)