mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Simplify specifiesContentType predicate
This commit is contained in:
@@ -145,8 +145,7 @@ private class SpringHttpFlowStep extends SummaryModelCsv {
|
||||
}
|
||||
|
||||
private predicate specifiesContentType(SpringRequestMappingMethod method) {
|
||||
method.getProducesExpr().(ArrayInit).getSize() != 0 or
|
||||
not method.getProducesExpr() instanceof ArrayInit
|
||||
exists(method.getAProducesExpr())
|
||||
}
|
||||
|
||||
private class SpringXssSink extends XSS::XssSink {
|
||||
|
||||
Reference in New Issue
Block a user