Skip to content

Commit d8df38c

Browse files
committed
Make DataFlowType a singleton (remove workaround)
1 parent f04a85e commit d8df38c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ predicate neverSkipInPathGraph(Node n) {
247247

248248
class DataFlowExpr = Expr;
249249

250-
private newtype TDataFlowType =
251-
TTodoDataFlowType() or
252-
TTodoDataFlowType2() // Add a dummy value to prevent bad functionality-induced joins arising from a type of size 1.
250+
private newtype TDataFlowType = TTodoDataFlowType()
253251

254252
class DataFlowType extends TDataFlowType {
255253
/** Gets a textual representation of this element. */

0 commit comments

Comments
 (0)