refactor(core): Refactor IterableDiffers#create method (#21383)

Remove unneeded else clause to show that `new IterableDiffers(factories);` is returned by default.

PR Close #21383
This commit is contained in:
Brian Douglas 2018-01-08 12:14:49 +00:00 committed by Alex Eagle
parent efe545a878
commit fb4d84d5b8
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
/**