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

Unified Diff: tracing/tracing/model/object_collection.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/model/model_settings.html ('k') | tracing/tracing/model/object_instance.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/object_collection.html
diff --git a/tracing/tracing/model/object_collection.html b/tracing/tracing/model/object_collection.html
index 0a370cc25c68af5a882fef96cf3085208473c96b..0affb746c884e4ccf33a186afb67b1c173615585 100644
--- a/tracing/tracing/model/object_collection.html
+++ b/tracing/tracing/model/object_collection.html
@@ -72,8 +72,7 @@ tr.exportTo('tr.model', function() {
this.instanceMapsByScopedId_[scopedId.scope] = dict;
}
var instanceMap = dict[scopedId.id];
- if (instanceMap)
- return instanceMap;
+ if (instanceMap) return instanceMap;
instanceMap = new tr.model.TimeToObjectInstanceMap(
this.createObjectInstance_, this.parent, scopedId);
dict[scopedId.id] = instanceMap;
@@ -115,8 +114,8 @@ tr.exportTo('tr.model', function() {
idWasDeleted: function(scopedId, category, name, ts) {
var instanceMap = this.getOrCreateInstanceMap_(scopedId);
var deletedInstance = instanceMap.idWasDeleted(category, name, ts);
- if (!deletedInstance)
- return;
+ if (!deletedInstance) return;
+
if (deletedInstance.category !== category) {
var msg = 'Deleting object ' + deletedInstance.name +
' with a different category ' +
@@ -149,25 +148,25 @@ tr.exportTo('tr.model', function() {
getObjectInstanceAt: function(scopedId, ts) {
var instanceMap;
- if (scopedId.scope in this.instanceMapsByScopedId_)
+ if (scopedId.scope in this.instanceMapsByScopedId_) {
instanceMap = this.instanceMapsByScopedId_[scopedId.scope][scopedId.id];
- if (!instanceMap)
- return undefined;
+ }
+ if (!instanceMap) return undefined;
return instanceMap.getInstanceAt(ts);
},
getSnapshotAt: function(scopedId, ts) {
var instance = this.getObjectInstanceAt(scopedId, ts);
- if (!instance)
- return undefined;
+ if (!instance) return undefined;
return instance.getSnapshotAt(ts);
},
iterObjectInstances: function(iter, opt_this) {
opt_this = opt_this || this;
for (var imapById of Object.values(this.instanceMapsByScopedId_)) {
- for (var i2imap of Object.values(imapById))
+ for (var i2imap of Object.values(imapById)) {
i2imap.instances.forEach(iter, opt_this);
+ }
}
},
« no previous file with comments | « tracing/tracing/model/model_settings.html ('k') | tracing/tracing/model/object_instance.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698