Skip to content

Commit

Permalink
refactor(core): Refactor IterableDiffers#create method (angular#21383)
Browse files Browse the repository at this point in the history
Remove unneeded else clause to show that `new IterableDiffers(factories);` is returned by default.

PR Close angular#21383
  • Loading branch information
Brian Douglas authored and alexeagle committed Jan 17, 2018
1 parent efe545a commit fb4d84d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit fb4d84d

Please sign in to comment.