Simplify addition

This commit is contained in:
Kristen Newbury
2025-10-22 17:15:59 -04:00
committed by Asger F
parent dd6db16550
commit 7f8ccb7d46

View File

@@ -806,10 +806,9 @@ private class ReactRouterLocationSource extends DOM::LocationSource::Range {
private class UseRefDomValueSource extends DOM::DomValueSource::Range {
UseRefDomValueSource() {
exists(DataFlow::PropRead current, UseRefStep step, string prop | current = this |
exists(DataFlow::PropRead current, UseRefStep step | current = this |
step.step(_, current) and
current.mayHavePropertyName(prop) and
prop = "current"
current.mayHavePropertyName("current")
)
}
}