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

Unified Diff: ui/webui/resources/js/util.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well Created 4 years 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 | « ui/webui/resources/js/promise_resolver.js ('k') | ui/webui/resources/js/web_ui_listener_behavior.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/util.js
diff --git a/ui/webui/resources/js/util.js b/ui/webui/resources/js/util.js
index 77d7835a8e7ea38eb4a3b6a62e1c56e2ba88c494..cdc8ed73c645259f519528ac03688abfbd8b57df 100644
--- a/ui/webui/resources/js/util.js
+++ b/ui/webui/resources/js/util.js
@@ -40,7 +40,9 @@ function announceAccessibleMessage(msg) {
element.style.height = '0px';
element.innerText = msg;
document.body.appendChild(element);
- window.setTimeout(function() { document.body.removeChild(element); }, 0);
+ window.setTimeout(function() {
+ document.body.removeChild(element);
+ }, 0);
}
/**
@@ -523,7 +525,9 @@ if (!('key' in KeyboardEvent.prototype)) {
*/
function importModules(moduleNames) {
return new Promise(function(resolve) {
- define(moduleNames, function() { resolve(Array.from(arguments)); });
+ define(moduleNames, function() {
+ resolve(Array.from(arguments));
+ });
});
}
« no previous file with comments | « ui/webui/resources/js/promise_resolver.js ('k') | ui/webui/resources/js/web_ui_listener_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698