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:
parent
efe545a878
commit
fb4d84d5b8
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue