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

Unified Diff: ui/webui/resources/js/chromeos/ui_account_tweaks.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: more options 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
Index: ui/webui/resources/js/chromeos/ui_account_tweaks.js
diff --git a/ui/webui/resources/js/chromeos/ui_account_tweaks.js b/ui/webui/resources/js/chromeos/ui_account_tweaks.js
index 278af2eb77f305783122244999b7114c4684702b..d694ecb3a68a31c9c72779c019b4985a6b29d652 100644
--- a/ui/webui/resources/js/chromeos/ui_account_tweaks.js
+++ b/ui/webui/resources/js/chromeos/ui_account_tweaks.js
@@ -25,7 +25,8 @@ cr.define('uiAccountTweaks', function() {
* Encapsulated handling of ChromeOS accounts options page.
* @constructor
*/
- function UIAccountTweaks() {}
+ function UIAccountTweaks() {
+ }
dschuyler 2016/12/22 22:34:27 Maybe add "Empty" (SFS_Empty) to AllowShortFunctio
Dan Beam 2016/12/22 22:37:30 Done.
/**
* @return {boolean} Whether the current user is owner or not.
@@ -166,7 +167,9 @@ cr.define('uiAccountTweaks', function() {
element.nodeName == 'BUTTON') {
element.disabled = true;
} else if (element.nodeName == 'A') {
- element.onclick = function() { return false; };
+ element.onclick = function() {
+ return false;
+ };
}
};

Powered by Google App Engine
This is Rietveld 408576698