Skip to content

Commit 6fddaa4

Browse files
committed
lint: fix line length errors
1 parent 4c13fe9 commit 6fddaa4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Diff for: nativescript-angular/platform-common.ts

+10-5
Original file line numberDiff line numberDiff line change
@@ -155,20 +155,25 @@ export class NativeScriptPlatformRef extends PlatformRef {
155155

156156
const navEntry: NavigationEntry = {
157157
create: (): Page => {
158-
let page = pageFactory({ isBootstrap: true, isLivesync });
158+
const page = pageFactory({ isBootstrap: true, isLivesync });
159159
setRootPage(page);
160160
if (this.appOptions) {
161161
page.actionBarHidden = this.appOptions.startPageActionBarHidden;
162162
}
163163

164-
let initHandler = profile("nativescript-angular/platform-common.initHandler", function () {
164+
const initHandlerMethodName =
165+
"nativescript-angular/platform-common.initHandler";
166+
const initHandler = profile(initHandlerMethodName, () => {
165167
page.off(Page.navigatingToEvent, initHandler);
166168
// profiling.stop("application-start");
167169
rendererLog("Page loaded");
168170

169171
// profiling.start("ng-bootstrap");
170172
rendererLog("BOOTSTRAPPING...");
171-
bootstrapAction().then(profile("nativescript-angular/platform-common.postBootstrapAction", (moduleRef) => {
173+
174+
const bootstrapMethodName =
175+
"nativescript-angular/platform-common.postBootstrapAction";
176+
bootstrapAction().then(profile(bootstrapMethodName, moduleRef => {
172177
// profiling.stop("ng-bootstrap");
173178
rendererLog("ANGULAR BOOTSTRAP DONE.");
174179
lastBootstrappedModule = new WeakRef(moduleRef);
@@ -177,9 +182,9 @@ export class NativeScriptPlatformRef extends PlatformRef {
177182
resolve(moduleRef);
178183
}
179184
return moduleRef;
180-
}), (err) => {
185+
}), err => {
181186
rendererError("ERROR BOOTSTRAPPING ANGULAR");
182-
let errorMessage = err.message + "\n\n" + err.stack;
187+
const errorMessage = err.message + "\n\n" + err.stack;
183188
rendererError(errorMessage);
184189

185190
let view = new TextView();

0 commit comments

Comments
 (0)