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

Unified Diff: tracing/tracing/ui/view_specific_brushing_state.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/tracks/x_axis_track.html ('k') | tracing/tracing/value/diagnostics/breakdown.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/view_specific_brushing_state.html
diff --git a/tracing/tracing/ui/view_specific_brushing_state.html b/tracing/tracing/ui/view_specific_brushing_state.html
index b4704f25a47643c108da3288b162cc06de523701..83d97c3735d533ae29fca8e9f00fa4f2f172a41c 100644
--- a/tracing/tracing/ui/view_specific_brushing_state.html
+++ b/tracing/tracing/ui/view_specific_brushing_state.html
@@ -57,13 +57,13 @@ Polymer({
*/
get: function() {
var viewId = this.viewId;
- if (!viewId)
+ if (!viewId) {
throw new Error('Element must have a view-id attribute!');
+ }
var brushingStateController =
tr.c.BrushingStateController.getControllerForElement(this);
- if (!brushingStateController)
- return undefined;
+ if (!brushingStateController) return undefined;
return brushingStateController.getViewSpecificBrushingState(viewId);
},
@@ -78,13 +78,13 @@ Polymer({
*/
set: function(state) {
var viewId = this.viewId;
- if (!viewId)
+ if (!viewId) {
throw new Error('Element must have a view-id attribute!');
+ }
var brushingStateController =
tr.c.BrushingStateController.getControllerForElement(this);
- if (!brushingStateController)
- return;
+ if (!brushingStateController) return;
brushingStateController.changeViewSpecificBrushingState(viewId, state);
}
« no previous file with comments | « tracing/tracing/ui/tracks/x_axis_track.html ('k') | tracing/tracing/value/diagnostics/breakdown.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698