Skip to content

Commit f2c849c

Browse files
committed
C#: Simplify.
1 parent 2afcc61 commit f2c849c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,11 +2074,9 @@ predicate storeStep(Node node1, ContentSet c, Node node2) {
20742074
exists(Parameter p |
20752075
node1 = TExplicitParameterNode(p) and
20762076
node2 = TPrimaryConstructorThisAccessNode(p, true) and
2077-
exists(Type t | t = p.getCallable().getDeclaringType() |
2078-
if t instanceof RecordType
2079-
then c.(PropertyContent).getProperty().getName() = p.getName()
2080-
else c.(PrimaryConstructorParameterContent).getParameter() = p
2081-
)
2077+
if p.getCallable().getDeclaringType() instanceof RecordType
2078+
then c.(PropertyContent).getProperty().getName() = p.getName()
2079+
else c.(PrimaryConstructorParameterContent).getParameter() = p
20822080
)
20832081
or
20842082
FlowSummaryImpl::Private::Steps::summaryStoreStep(node1.(FlowSummaryNode).getSummaryNode(), c,

0 commit comments

Comments
 (0)