File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
powershell/ql/lib/semmle/code/powershell/frameworks Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module PowerShell {
6
6
private class PowerShellGlobalEntry extends ModelInput:: TypeModel {
7
7
override DataFlow:: Node getASource ( string type ) {
8
8
type = "System.Management.Automation.PowerShell!" and
9
- result .asExpr ( ) .getExpr ( ) .( TypeNameExpr ) .getName ( ) . toLowerCase ( ) = "powershell"
9
+ result .asExpr ( ) .getExpr ( ) .( TypeNameExpr ) .getLowerCaseName ( ) = "powershell"
10
10
}
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module RunspaceFactory {
6
6
private class RunspaceFactoryGlobalEntry extends ModelInput:: TypeModel {
7
7
override DataFlow:: Node getASource ( string type ) {
8
8
type = "System.Management.Automation.Runspaces.RunspaceFactory!" and
9
- result .asExpr ( ) .getExpr ( ) .( TypeNameExpr ) .getName ( ) . toLowerCase ( ) = "runspacefactory"
9
+ result .asExpr ( ) .getExpr ( ) .( TypeNameExpr ) .getLowerCaseName ( ) = "runspacefactory"
10
10
}
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments