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

Unified Diff: tracing/tracing/model/helpers/chrome_model_helper.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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/model/helpers/chrome_model_helper.html
diff --git a/tracing/tracing/model/helpers/chrome_model_helper.html b/tracing/tracing/model/helpers/chrome_model_helper.html
index e454392c3f71bdc7cb9852bb5599eea922f9994b..3c391fb7a29020c75c6a10a53ccd5c0e247039ca 100644
--- a/tracing/tracing/model/helpers/chrome_model_helper.html
+++ b/tracing/tracing/model/helpers/chrome_model_helper.html
@@ -31,8 +31,7 @@ tr.exportTo('tr.model.helpers', function() {
function findChromeGpuProcess(model) {
var gpuProcesses = model.getAllProcesses(
tr.model.helpers.ChromeGpuHelper.isGpuProcess);
- if (gpuProcesses.length !== 1)
- return undefined;
+ if (gpuProcesses.length !== 1) return undefined;
return gpuProcesses[0];
}
@@ -69,10 +68,8 @@ tr.exportTo('tr.model.helpers', function() {
ChromeModelHelper.guid = tr.b.GUID.allocateSimple();
ChromeModelHelper.supportsModel = function(model) {
- if (findChromeBrowserProcesses(model).length)
- return true;
- if (findChromeRenderProcesses(model).length)
- return true;
+ if (findChromeBrowserProcesses(model).length) return true;
+ if (findChromeRenderProcesses(model).length) return true;
return false;
};
@@ -92,8 +89,7 @@ tr.exportTo('tr.model.helpers', function() {
// TODO: Make all users of ChromeModelHelper support multiple browsers and
// remove this getter (see #2119).
get browserProcess() {
- if (this.browserHelper === undefined)
- return undefined;
+ if (this.browserHelper === undefined) return undefined;
return this.browserHelper.process;
},

Powered by Google App Engine
This is Rietveld 408576698