Skip to content

Commit c011ac7

Browse files
committed
Remove unnecessary extra definition of isSource
1 parent 9d660a2 commit c011ac7

File tree

1 file changed

+1
-4
lines changed
  • go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database

1 file changed

+1
-4
lines changed

go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database/test.ql

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import experimental.frameworks.CleverGo
55
import utils.test.InlineFlowTest
66

77
module Config implements DataFlow::ConfigSig {
8-
predicate isSource(DataFlow::Node source) {
9-
source instanceof ActiveThreatModelSource or
10-
source.asExpr().(CallExpr).getCalleeName() = "source"
11-
}
8+
predicate isSource(DataFlow::Node source) { source instanceof ActiveThreatModelSource }
129

1310
predicate isSink(DataFlow::Node sink) {
1411
sink.asExpr() = any(CallExpr c | c.getTarget().getName() = "sink").getAnArgument()

0 commit comments

Comments
 (0)