From fb4d84d5b872d73fbc2519437d263aa75eebf2a4 Mon Sep 17 00:00:00 2001 From: Brian Douglas Date: Mon, 8 Jan 2018 12:14:49 +0000 Subject: [PATCH] refactor(core): Refactor IterableDiffers#create method (#21383) Remove unneeded else clause to show that `new IterableDiffers(factories);` is returned by default. PR Close #21383 --- .../core/src/change_detection/differs/iterable_differs.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/change_detection/differs/iterable_differs.ts b/packages/core/src/change_detection/differs/iterable_differs.ts index a91074aa65..3af661d154 100644 --- a/packages/core/src/change_detection/differs/iterable_differs.ts +++ b/packages/core/src/change_detection/differs/iterable_differs.ts @@ -144,10 +144,9 @@ export class IterableDiffers { if (parent != null) { const copied = parent.factories.slice(); factories = factories.concat(copied); - return new IterableDiffers(factories); - } else { - return new IterableDiffers(factories); } + + return new IterableDiffers(factories); } /**