Fix remaining no-implicit-coercion errors in front_end/
[email protected]
Bug: 1082789
Change-Id: I100a53f7abd5d35565a3062769273e61c00cbafd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2612902
Auto-Submit: Tim van der Lippe <[email protected]>
Commit-Queue: Jack Franklin <[email protected]>
Reviewed-by: Jack Franklin <[email protected]>
diff --git a/front_end/ui/ActionRegistration.ts b/front_end/ui/ActionRegistration.ts
index ce2a3c7..4a6694a 100644
--- a/front_end/ui/ActionRegistration.ts
+++ b/front_end/ui/ActionRegistration.ts
@@ -85,7 +85,7 @@
}
toggleWithRedColor(): boolean {
- return !!this.actionDescriptor().toggleWithRedColor;
+ return Boolean(this.actionDescriptor().toggleWithRedColor);
}
setEnabled(enabled: boolean): void {
@@ -117,7 +117,7 @@
}
toggleable(): boolean {
- return !!this.actionDescriptor().toggleable;
+ return Boolean(this.actionDescriptor().toggleable);
}
title(): string {
@@ -187,7 +187,7 @@
}
toggleWithRedColor(): boolean {
- return !!this.actionRegistration.toggleWithRedColor;
+ return Boolean(this.actionRegistration.toggleWithRedColor);
}
setEnabled(enabled: boolean): void {
@@ -215,7 +215,7 @@
}
toggleable(): boolean {
- return !!this.actionRegistration.toggleable;
+ return Boolean(this.actionRegistration.toggleable);
}
title(): string {
@@ -262,7 +262,7 @@
}
canInstantiate(): boolean {
- return !!this.actionRegistration.loadActionDelegate;
+ return Boolean(this.actionRegistration.loadActionDelegate);
}
bindings(): Array<Binding>|undefined {