refactor(angular): use arrow functions (#18910)

This commit is contained in:
Manu MA
2019-08-06 14:18:08 +02:00
committed by GitHub
parent 3a22105375
commit f94300cbb3
8 changed files with 24 additions and 24 deletions

View File

@ -213,7 +213,7 @@ export class NavController {
}
}
function getAnimation(direction: RouterDirection, animated: boolean | undefined, animationDirection: 'forward' | 'back' | undefined): NavDirection | undefined {
const getAnimation = (direction: RouterDirection, animated: boolean | undefined, animationDirection: 'forward' | 'back' | undefined): NavDirection | undefined => {
if (animated === false) {
return undefined;
}
@ -226,7 +226,7 @@ function getAnimation(direction: RouterDirection, animated: boolean | undefined,
return 'forward';
}
return undefined;
}
};
const DEFAULT_DIRECTION = 'auto';
const DEFAULT_ANIMATED = undefined;