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

Unified Diff: tracing/tracing/extras/net/net_async_slice.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
Index: tracing/tracing/extras/net/net_async_slice.html
diff --git a/tracing/tracing/extras/net/net_async_slice.html b/tracing/tracing/extras/net/net_async_slice.html
index 1824d4c88ad51b7a089ee40d262ccb1ef3e877a6..db6d9192989f7fd14b000c7cd4def17fff46975e 100644
--- a/tracing/tracing/extras/net/net_async_slice.html
+++ b/tracing/tracing/extras/net/net_async_slice.html
@@ -31,8 +31,9 @@ tr.exportTo('tr.e.net', function() {
},
get title() {
- if (this.isTitleComputed_ || !this.isTopLevel)
+ if (this.isTitleComputed_ || !this.isTopLevel) {
return this.title_;
+ }
if (this.url !== undefined && this.url.length > 0) {
// Set the title so we do not have to recompute when it is redrawn.
@@ -53,15 +54,17 @@ tr.exportTo('tr.e.net', function() {
// A recursive helper function that gets the url param of a slice or its
// nested subslices if there is one.
get url() {
- if (this.isUrlComputed_)
+ if (this.isUrlComputed_) {
return this.url_;
+ }
if (this.args !== undefined && this.args.params !== undefined &&
this.args.params.url !== undefined) {
this.url_ = this.args.params.url;
} else if (this.subSlices !== undefined && this.subSlices.length > 0) {
for (var i = 0; i < this.subSlices.length && ! this.url_; i++) {
- if (this.subSlices[i].url !== undefined)
+ if (this.subSlices[i].url !== undefined) {
this.url_ = this.subSlices[i].url;
+ }
}
}
this.isUrlComputed_ = true;
@@ -69,8 +72,9 @@ tr.exportTo('tr.e.net', function() {
},
get byteCount() {
- if (this.byteCount_ !== undefined)
+ if (this.byteCount_ !== undefined) {
return this.byteCount_;
+ }
this.byteCount_ = 0;
if ((this.originalTitle === 'URL_REQUEST_JOB_FILTERED_BYTES_READ' ||
« no previous file with comments | « tracing/tracing/extras/importer/zip_importer.html ('k') | tracing/tracing/extras/system_stats/system_stats_snapshot.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698