Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: tracing/tracing/ui/base/checkbox.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/ui/base/chart_base_2d.html ('k') | tracing/tracing/ui/base/checkbox_picker.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/checkbox.html
diff --git a/tracing/tracing/ui/base/checkbox.html b/tracing/tracing/ui/base/checkbox.html
index 5862aa17d79b3d017dd19c13b186b6611ee56ff4..9d47136f4ac6154b6e9bc4ed72cc0daa169c6005 100644
--- a/tracing/tracing/ui/base/checkbox.html
+++ b/tracing/tracing/ui/base/checkbox.html
@@ -44,8 +44,7 @@ found in the LICENSE file.
},
maybeUpdateElements_: function() {
- if (!this.is_ready_)
- return;
+ if (!this.is_ready_) return;
this.$.label.innerText = this.label_;
this.$.checkbox.checked = this.checked_;
},
@@ -55,8 +54,9 @@ found in the LICENSE file.
},
set defaultCheckedValue(defaultCheckedValue) {
- if (!this.needsInit_)
+ if (!this.needsInit_) {
throw new Error('Already initialized.');
+ }
this.defaultCheckedValue_ = defaultCheckedValue;
this.maybeInit_();
},
@@ -66,19 +66,17 @@ found in the LICENSE file.
},
set settingsKey(settingsKey) {
- if (!this.needsInit_)
+ if (!this.needsInit_) {
throw new Error('Already initialized.');
+ }
this.settingsKey_ = settingsKey;
this.maybeInit_();
},
maybeInit_: function() {
- if (!this.needsInit_)
- return;
- if (this.settingsKey_ === undefined)
- return;
- if (this.defaultCheckedValue_ === undefined)
- return;
+ if (!this.needsInit_) return;
+ if (this.settingsKey_ === undefined) return;
+ if (this.defaultCheckedValue_ === undefined) return;
this.needsInit_ = false;
this.checked = tr.b.Settings.get(
this.settingsKey_, this.defaultCheckedValue_);
« no previous file with comments | « tracing/tracing/ui/base/chart_base_2d.html ('k') | tracing/tracing/ui/base/checkbox_picker.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698