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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.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/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index 9b462083694f1c3a7b0797f5c505f7162305af29..036abcc3d3a33713927497e3e8d974d76030a2ae 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -852,7 +852,7 @@ WebInspector.highlightRangesWithStyleClass = function(element, resultRanges, sty
changes = changes || [];
var highlightNodes = [];
var textNodes = element.childTextNodes();
- var lineText = textNodes.map(function (node) { return node.textContent; }).join("");
+ var lineText = textNodes.map(function(node) { return node.textContent; }).join("");
var ownerDocument = element.ownerDocument;
if (textNodes.length === 0)
@@ -1704,7 +1704,7 @@ WebInspector.ThemeSupport.prototype = {
var fullText = result.join("\n");
this._cachedThemePatches.set(id, fullText);
return fullText;
- } catch(e) {
+ } catch (e) {
this._setting.set("default");
return "";
}

Powered by Google App Engine
This is Rietveld 408576698