Skip to content

Commit 5b04a71

Browse files
committed
Non-trivial implementation of NeutralCallableAdapter
1 parent df8e04f commit 5b04a71

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,7 @@ private class NeutralCallableAdapter extends NeutralCallable {
460460
string kind;
461461
string provenance_;
462462

463-
NeutralCallableAdapter() {
464-
// Neutral models have not been implemented for Go.
465-
none() and
466-
exists(this) and
467-
exists(kind) and
468-
exists(provenance_)
469-
}
463+
NeutralCallableAdapter() { neutralElement(this, kind, provenance_) }
470464

471465
override string getKind() { result = kind }
472466

0 commit comments

Comments
 (0)