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

Unified Diff: ui/webui/resources/js/promise_resolver.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/parse_html_subset.js ('k') | ui/webui/resources/js/util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/promise_resolver.js
diff --git a/ui/webui/resources/js/promise_resolver.js b/ui/webui/resources/js/promise_resolver.js
index 58236360278779b516de19843207df698b43dcfe..64501d6d141424684b258d3afc5a44db61989c45 100644
--- a/ui/webui/resources/js/promise_resolver.js
+++ b/ui/webui/resources/js/promise_resolver.js
@@ -36,14 +36,26 @@ function PromiseResolver() {
PromiseResolver.prototype = {
/** @return {!Promise<T>} */
- get promise() { return this.promise_; },
- set promise(p) { assertNotReached(); },
+ get promise() {
+ return this.promise_;
+ },
+ set promise(p) {
+ assertNotReached();
+ },
/** @return {function(T=): void} */
- get resolve() { return this.resolve_; },
- set resolve(r) { assertNotReached(); },
+ get resolve() {
+ return this.resolve_;
+ },
+ set resolve(r) {
+ assertNotReached();
+ },
/** @return {function(*=): void} */
- get reject() { return this.reject_; },
- set reject(s) { assertNotReached(); },
+ get reject() {
+ return this.reject_;
+ },
+ set reject(s) {
+ assertNotReached();
+ },
};
« no previous file with comments | « ui/webui/resources/js/parse_html_subset.js ('k') | ui/webui/resources/js/util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698