Skip to content

Commit 9f82088

Browse files
authored
Remove unnecessary casts
1 parent 50fb662 commit 9f82088

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

go/ql/lib/semmle/go/controlflow/ControlFlowGraph.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ module ControlFlow {
169169
/**
170170
* Holds if this node writes `rhs` to `channel`.
171171
*/
172-
predicate writesToChannel(DataFlow::Node channel, DataFlow::Node rhs) {
172+
predicate writesToChannel(DataFlow::ExprNode channel, DataFlow::ExprNode rhs) {
173173
exists(SendStmt send |
174-
send.getChannel() = channel.(DataFlow::ExprNode).asExpr() and
175-
send.getValue() = rhs.(DataFlow::ExprNode).asExpr()
174+
send.getChannel() = channel.asExpr() and
175+
send.getValue() = rhs.asExpr()
176176
)
177177
}
178178

0 commit comments

Comments
 (0)