Skip to content

Commit d2070cf

Browse files
committed
unified: Remove superfluous parens
1 parent 8c4574e commit d2070cf

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

‎unified/ql/lib/codeql/unified/internal/AnalysisQuality.qll‎

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,17 @@ module StaticNameResolutionStats implements EntityStatsSig {
4646
}
4747

4848
NameBindingNode getTarget() {
49-
(
50-
result.asIdentifier() = getStaticBindingTarget(this)
51-
or
52-
result.isModuleScopeNode(_) and
53-
result.(NamespaceNode).ref().isIdentifier(this)
54-
or
55-
// Resolving to an implicitly-declared local such as "self" should count as
56-
// as a successfully resolved name
57-
exists(LocalName implicitLocal |
58-
implicitLocal = this.(LocalNameAccess).getLocalName() and
59-
not exists(implicitLocal.getABinding()) and
60-
result.isLocalName(implicitLocal)
61-
)
49+
result.asIdentifier() = getStaticBindingTarget(this)
50+
or
51+
result.isModuleScopeNode(_) and
52+
result.(NamespaceNode).ref().isIdentifier(this)
53+
or
54+
// Resolving to an implicitly-declared local such as "self" should count as
55+
// as a successfully resolved name
56+
exists(LocalName implicitLocal |
57+
implicitLocal = this.(LocalNameAccess).getLocalName() and
58+
not exists(implicitLocal.getABinding()) and
59+
result.isLocalName(implicitLocal)
6260
)
6361
}
6462

0 commit comments

Comments
 (0)