refactor: simplify arrow functions (#12057)

This commit is contained in:
Victor Berchet
2016-10-04 15:57:37 -07:00
committed by Chuck Jazdzewski
parent a63359689f
commit 50c37d45dc
25 changed files with 43 additions and 51 deletions

View File

@ -577,8 +577,7 @@ export class Router {
preActivation.traverse(this.outletMap);
});
const preactivation2$ =
mergeMap.call(preactivation$, () => { return preActivation.checkGuards(); });
const preactivation2$ = mergeMap.call(preactivation$, () => preActivation.checkGuards());
const resolveData$ = mergeMap.call(preactivation2$, (shouldActivate: boolean) => {
if (shouldActivate) {