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

Unified Diff: tracing/tracing/model/source_info/source_info.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/slice_test.html ('k') | tracing/tracing/model/stack_frame.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/source_info/source_info.html
diff --git a/tracing/tracing/model/source_info/source_info.html b/tracing/tracing/model/source_info/source_info.html
index 1a72aa0d0d8f87016b9c5e22bb7d0be63a820a57..0dccbb2f226436123c4261f1ee8fb4efec74a011 100644
--- a/tracing/tracing/model/source_info/source_info.html
+++ b/tracing/tracing/model/source_info/source_info.html
@@ -31,8 +31,7 @@ tr.exportTo('tr.model.source_info', function() {
},
get domain() {
- if (!this.file_)
- return undefined;
+ if (!this.file_) return undefined;
var domain = this.file_.match(/(.*:\/\/[^:\/]*)/i);
return domain ? domain[1] : undefined;
},
@@ -40,12 +39,15 @@ tr.exportTo('tr.model.source_info', function() {
toString: function() {
var str = '';
- if (this.file_)
+ if (this.file_) {
str += this.file_;
- if (this.line_ > 0)
+ }
+ if (this.line_ > 0) {
str += ':' + this.line_;
- if (this.column_ > 0)
+ }
+ if (this.column_ > 0) {
str += ':' + this.column_;
+ }
return str;
}
};
« no previous file with comments | « tracing/tracing/model/slice_test.html ('k') | tracing/tracing/model/stack_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698