Skip to content

Commit 16113e6

Browse files
committed
Use type cast to make QL more succinct
1 parent 76bba60 commit 16113e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

go/ql/src/Security/CWE-352/ConstantOauth2State.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ predicate privateUrlFlowsToAuthCodeUrlCall(DataFlow::CallNode call) {
140140

141141
module FlowToPrintConfig implements DataFlow::ConfigSig {
142142
additional predicate isSinkCall(DataFlow::Node sink, DataFlow::CallNode call) {
143-
exists(LoggerCall logCall | call = logCall |
144-
sink = logCall.getAValueFormattedMessageComponent()
145-
)
143+
sink = call.(LoggerCall).getAValueFormattedMessageComponent()
146144
}
147145

148146
predicate isSource(DataFlow::Node source) { source = any(AuthCodeUrl m).getACall().getResult() }

0 commit comments

Comments
 (0)