Skip to content

Commit 9e51082

Browse files
committed
Remove null check
1 parent b4d40ff commit 9e51082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/CheckUnused.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class CheckUnused extends MiniPhase:
142142
override def prepareForAssign(tree: tpd.Assign)(using Context): Context =
143143
unusedDataApply{ ud =>
144144
val sym = tree.lhs.symbol
145-
if sym != null && sym.exists then
145+
if sym.exists then
146146
ud.registerSetVar(sym)
147147
}
148148

0 commit comments

Comments
 (0)