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

Unified Diff: ui/webui/resources/js/assert.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/action_link.js ('k') | ui/webui/resources/js/chromeos/ui_account_tweaks.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/assert.js
diff --git a/ui/webui/resources/js/assert.js b/ui/webui/resources/js/assert.js
index a404b68c78ce0a025d4af8a91660b7c13a63c032..42fb523fb07e53302a33fdfb833f14826c57a3be 100644
--- a/ui/webui/resources/js/assert.js
+++ b/ui/webui/resources/js/assert.js
@@ -21,7 +21,9 @@ function assert(condition, opt_message) {
if (opt_message)
message = message + ': ' + opt_message;
var error = new Error(message);
- var global = function() { return this; }();
+ var global = function() {
+ return this;
+ }();
if (global.traceAssertionsForTesting)
console.warn(error.stack);
throw error;
« no previous file with comments | « ui/webui/resources/js/action_link.js ('k') | ui/webui/resources/js/chromeos/ui_account_tweaks.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698