From 0a3f8173f0299c52d32792941db9e968e86b9407 Mon Sep 17 00:00:00 2001 From: krzysztof-grzybek Date: Mon, 8 Oct 2018 21:13:16 +0200 Subject: [PATCH] refactor(platform-browser): remove type assertion on console.profileEnd (#26303) Since typescript v3.1 type definition for console.profileEnd is fixed and type assertion 'any' is not needed any more PR Close #26303 --- packages/platform-browser/src/browser/tools/common_tools.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/platform-browser/src/browser/tools/common_tools.ts b/packages/platform-browser/src/browser/tools/common_tools.ts index f4f7d05894..511b081ee5 100644 --- a/packages/platform-browser/src/browser/tools/common_tools.ts +++ b/packages/platform-browser/src/browser/tools/common_tools.ts @@ -56,11 +56,7 @@ export class AngularProfiler { } const end = getDOM().performanceNow(); if (record && isProfilerAvailable) { - // need to cast to because type checker thinks there's no argument - // while in fact there is: - // - // https://developer.mozilla.org/en-US/docs/Web/API/Console/profileEnd - (window.console.profileEnd)(profileName); + window.console.profileEnd(profileName); } const msPerTick = (end - start) / numTicks; window.console.log(`ran ${numTicks} change detection cycles`);