mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
Fixed ql warning Expression can be replaced with a cast
This commit is contained in:
@@ -218,9 +218,7 @@ private DataFlow::SourceNode sourceStreamRef(PipeCall pipeCall) {
|
||||
* Holds if the source stream of the given pipe call has an `error` handler registered.
|
||||
*/
|
||||
private predicate hasErrorHandlerRegistered(PipeCall pipeCall) {
|
||||
exists(ErrorHandlerRegistration handler |
|
||||
handler = sourceStreamRef(pipeCall).getAMethodCall(getEventHandlerMethodName())
|
||||
)
|
||||
sourceStreamRef(pipeCall).getAMethodCall(_) instanceof ErrorHandlerRegistration
|
||||
or
|
||||
hasPlumber(pipeCall)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user