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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js
index 57afb9146394fcfcf1d399878ecec83494c41c7b..158b30cb287b9b0f6f4b33c1cd7872972ebc5ee9 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotView.js
@@ -1239,7 +1239,7 @@ WebInspector.TrackingHeapSnapshotProfileType.prototype = {
var index;
for (var i = 0; i < samples.length; i += 3) {
index = samples[i];
- var size = samples[i+2];
+ var size = samples[i + 2];
this._profileSamples.sizes[index] = size;
if (!this._profileSamples.max[index])
this._profileSamples.max[index] = size;
@@ -1687,7 +1687,7 @@ WebInspector.HeapSnapshotLoadFromFileDelegate.prototype = {
onError: function(reader, e)
{
var subtitle;
- switch(e.target.error.code) {
+ switch (e.target.error.code) {
case e.target.error.NOT_FOUND_ERR:
subtitle = WebInspector.UIString("'%s' not found.", reader.fileName());
break;

Powered by Google App Engine
This is Rietveld 408576698