Skip to content

Commit 7f8ccb7

Browse files
knewbury01asgerf
authored andcommitted
Simplify addition
1 parent dd6db16 commit 7f8ccb7

File tree

1 file changed

+2
-3
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+2
-3
lines changed

javascript/ql/lib/semmle/javascript/frameworks/React.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,10 +806,9 @@ private class ReactRouterLocationSource extends DOM::LocationSource::Range {
806806

807807
private class UseRefDomValueSource extends DOM::DomValueSource::Range {
808808
UseRefDomValueSource() {
809-
exists(DataFlow::PropRead current, UseRefStep step, string prop | current = this |
809+
exists(DataFlow::PropRead current, UseRefStep step | current = this |
810810
step.step(_, current) and
811-
current.mayHavePropertyName(prop) and
812-
prop = "current"
811+
current.mayHavePropertyName("current")
813812
)
814813
}
815814
}

0 commit comments

Comments
 (0)