Skip to content

Commit 9fb5711

Browse files
committed
PS: Drive-by fix: Match Ruby's implementation of 'getAMatchingContent'.
1 parent 94220ec commit 9fb5711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

powershell/ql/lib/semmle/code/powershell/typetracking/internal/TypeTrackingImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ module TypeTrackingInput implements Shared::TypeTrackingInput {
131131

132132
/** Gets the content of a type-tracker that matches this filter. */
133133
Content getAMatchingContent() {
134-
none() // TODO
134+
this = MkElementFilter() and
135+
result.getAReadContent() instanceof DataFlow::Content::ElementContent
135136
}
136137
}
137138

0 commit comments

Comments
 (0)