Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 23be9b2

Browse files
caitpjbdeboer
authored andcommitted
refactor(change_detection): remove unnecessary conditional expression
`prev` is guaranteed to not be null here, the method would throw noSuchMethod if it were.
1 parent b0c9c78 commit 23be9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/change_detection/watch_group.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class WatchGroup implements _EvalWatchList, _WatchGroupList {
264264

265265
marker._previousEvalWatch = prev;
266266
marker._nextEvalWatch = next;
267-
if (prev != null) prev._nextEvalWatch = marker;
267+
prev._nextEvalWatch = marker;
268268
if (next != null) next._previousEvalWatch = marker;
269269

270270
return childGroup;

0 commit comments

Comments
 (0)