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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/node_state.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/resources/chromeos/chromevox/common/node_state.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/node_state.js b/chrome/browser/resources/chromeos/chromevox/common/node_state.js
index d7f97fec38275f842a01bb593d1065177bf2aa47..ce082ac1a859e857f89674775fbfcab14b1bc651 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/node_state.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/node_state.js
@@ -34,18 +34,20 @@ cvox.NodeState;
*/
cvox.NodeStateUtil.expand = function(state) {
try {
- return state.map(function(s) {
- if (s.length < 1) {
- throw new Error('cvox.NodeState must have at least one entry');
- }
- var args = s.slice(1).map(function(a) {
- if (typeof a == 'number') {
- return Msgs.getNumber(a);
- }
- return a;
- });
- return Msgs.getMsg(/** @type {string} */ (s[0]), args);
- }).join(' ');
+ return state
+ .map(function(s) {
+ if (s.length < 1) {
+ throw new Error('cvox.NodeState must have at least one entry');
+ }
+ var args = s.slice(1).map(function(a) {
+ if (typeof a == 'number') {
+ return Msgs.getNumber(a);
+ }
+ return a;
+ });
+ return Msgs.getMsg(/** @type {string} */ (s[0]), args);
+ })
+ .join(' ');
} catch (e) {
throw new Error('error: ' + e + ' state: ' + state);
}

Powered by Google App Engine
This is Rietveld 408576698