Skip to content

Commit ea0ae98

Browse files
committed
JS: Use explicit this
1 parent 99f03a0 commit ea0ae98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/lib/semmle/javascript/Classes.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ class MemberDeclaration extends @property, Documentable {
494494
predicate isStatic() { is_static(this) }
495495

496496
/** Gets a boolean indicating if this member is static. */
497-
boolean getStaticAsBool() { if isStatic() then result = true else result = false }
497+
boolean getStaticAsBool() { if this.isStatic() then result = true else result = false }
498498

499499
/**
500500
* Holds if this member is abstract.

0 commit comments

Comments
 (0)