Merge pull request #2755 from github/starcke/fix-neutral-fetch

Fix ql code in neutral fetch.
This commit is contained in:
Anders Starcke Henriksen
2023-08-29 09:29:59 +02:00
committed by GitHub

View File

@@ -147,7 +147,7 @@ class CallableMethod extends Callable {
/** Holds if this API is a known neutral. */
pragma[nomagic]
predicate isNeutral() { this = any(FlowSummaryImpl::Public::NeutralCallable nsc).asCallable() }
predicate isNeutral() { this instanceof FlowSummaryImpl::Public::NeutralCallable }
/**
* Holds if this API is supported by existing CodeQL libraries, that is, it is either a