Skip to content

Commit 18d3204

Browse files
committed
fix trim misuse
1 parent fd6e8cd commit 18d3204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/src/security/TrimMisuse/TrimMisuse.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212

1313
import go
14-
import DataFlow2
14+
import semmle.go.dataflow.DataFlow
1515

1616
/*
1717
* Flows from a string to TrimFamilyCall cutSet argument
@@ -32,7 +32,7 @@ module Trim2ndArgFlow = DataFlow::Global<Trim2ndArgConfig>;
3232
/*
3333
* Calls to Trim methods that we are interested in
3434
*/
35-
class TrimFamilyCall extends CallNode {
35+
class TrimFamilyCall extends DataFlow::CallNode {
3636
TrimFamilyCall() {
3737
this.getTarget().hasQualifiedName("strings", ["TrimRight", "TrimLeft", "Trim"])
3838
or

0 commit comments

Comments
 (0)