build: reformat repo to new clang@1.4.0 (#36628)

PR Close #36628
This commit is contained in:
Joey Perrott
2020-04-13 17:43:52 -07:00
committed by atscott
parent 4b3f9ac739
commit 26f49151e7
1163 changed files with 31727 additions and 24036 deletions

View File

@ -37,7 +37,7 @@ import {UpgradeModule} from '@angular/upgrade/static';
export const RouterUpgradeInitializer = {
provide: APP_BOOTSTRAP_LISTENER,
multi: true,
useFactory: locationSyncBootstrapListener as(ngUpgrade: UpgradeModule) => () => void,
useFactory: locationSyncBootstrapListener as (ngUpgrade: UpgradeModule) => () => void,
deps: [UpgradeModule]
};
@ -45,7 +45,9 @@ export const RouterUpgradeInitializer = {
* @internal
*/
export function locationSyncBootstrapListener(ngUpgrade: UpgradeModule) {
return () => { setUpLocationSync(ngUpgrade); };
return () => {
setUpLocationSync(ngUpgrade);
};
}
/**
@ -60,7 +62,7 @@ export function locationSyncBootstrapListener(ngUpgrade: UpgradeModule) {
*
* @publicApi
*/
export function setUpLocationSync(ngUpgrade: UpgradeModule, urlType: 'path' | 'hash' = 'path') {
export function setUpLocationSync(ngUpgrade: UpgradeModule, urlType: 'path'|'hash' = 'path') {
if (!ngUpgrade.$injector) {
throw new Error(`
RouterUpgradeInitializer can be used only after UpgradeModule.bootstrap has been called.

View File

@ -119,8 +119,7 @@ describe('setUpLocationSync', () => {
expect(LocationMock.normalize).toHaveBeenCalledWith('/foo/bar');
} finally {
Object.defineProperty(anchorProto, 'pathname', originalDescriptor !);
Object.defineProperty(anchorProto, 'pathname', originalDescriptor!);
}
});
});