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

Unified Diff: tracing/tracing/ui/tracks/container_to_track_map.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/chart_track.html ('k') | tracing/tracing/ui/tracks/container_track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/container_to_track_map.html
diff --git a/tracing/tracing/ui/tracks/container_to_track_map.html b/tracing/tracing/ui/tracks/container_to_track_map.html
index c52a32a86125f9df36d213aeb5a2b76711423ef3..452420c52982f4b9abbabb3db97a4d0b32bdff80 100644
--- a/tracing/tracing/ui/tracks/container_to_track_map.html
+++ b/tracing/tracing/ui/tracks/container_to_track_map.html
@@ -23,8 +23,9 @@ tr.exportTo('tr.ui.tracks', function() {
ContainerToTrackMap.prototype = {
addContainer: function(container, track) {
- if (!track)
+ if (!track) {
throw new Error('Must provide a track.');
+ }
this.stableIdToTrackMap_[container.stableId] = track;
},
« no previous file with comments | « tracing/tracing/ui/tracks/chart_track.html ('k') | tracing/tracing/ui/tracks/container_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698