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

Unified Diff: tracing/tracing/base/base.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 | « dashboard/dashboard/pinpoint/index/index.html ('k') | tracing/tracing/base/base64.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/base.html
diff --git a/tracing/tracing/base/base.html b/tracing/tracing/base/base.html
index 07915014d5a3caa94be6e9da8115d346278373ca..422690657b46d9e753b1820922dad798db5c26bb 100644
--- a/tracing/tracing/base/base.html
+++ b/tracing/tracing/base/base.html
@@ -63,8 +63,7 @@ this.tr = (function() {
for (var i = 0; i < parts.length; i++) {
var partName = parts[i];
var nextObject = curObject[partName];
- if (nextObject === undefined)
- return false;
+ if (nextObject === undefined) return false;
curObject = nextObject;
}
return true;
@@ -73,8 +72,7 @@ this.tr = (function() {
var panicElement = undefined;
var rawPanicMessages = [];
function showPanicElementIfNeeded() {
- if (panicElement)
- return;
+ if (panicElement) return;
var panicOverlay = document.createElement('div');
panicOverlay.style.backgroundColor = 'white';
@@ -106,13 +104,13 @@ this.tr = (function() {
function showPanic(panicTitle, panicDetails) {
if (tr.isHeadless) {
- if (panicDetails instanceof Error)
- throw panicDetails;
+ if (panicDetails instanceof Error) throw panicDetails;
throw new Error('Panic: ' + panicTitle + ':\n' + panicDetails);
}
- if (panicDetails instanceof Error)
+ if (panicDetails instanceof Error) {
panicDetails = panicDetails.stack;
+ }
showPanicElementIfNeeded();
var panicMessageEl = document.createElement('div');
@@ -148,8 +146,9 @@ this.tr = (function() {
// properties.
var propertyDescriptor = Object.getOwnPropertyDescriptor(exports,
propertyName);
- if (propertyDescriptor)
+ if (propertyDescriptor) {
Object.defineProperty(obj, propertyName, propertyDescriptor);
+ }
}
}
« no previous file with comments | « dashboard/dashboard/pinpoint/index/index.html ('k') | tracing/tracing/base/base64.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698