Skip to content

Commit

Permalink
Simplify interpretElement
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton authored and owen-mc committed Nov 11, 2024
1 parent e90e313 commit d9126d3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions go/ql/lib/semmle/go/dataflow/ExternalFlow.qll
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,8 @@ SourceSinkInterpretationInput::SourceOrSinkElement interpretElement(
// Go does not need to distinguish functions with signature
signature = "" and
exists(string p | p = interpretPackage(pkg) |
exists(Field f | f.hasQualifiedName(p, type, name) |
result.asEntity() = f and
result.hasTypeInfo(p, type, subtypes)
)
result.asEntity().(Field).hasQualifiedName(p, type, name) and
result.hasTypeInfo(p, type, subtypes)
or
exists(Method m | m.hasQualifiedName(p, type, name) |
result.asEntity() = m and
Expand Down

0 comments on commit d9126d3

Please sign in to comment.