From 2ef8b2c86b2e55bb8e51115ed89b46cf0f04f42d Mon Sep 17 00:00:00 2001 From: kozbial Date: Mon, 19 Jul 2021 18:02:39 -0700 Subject: [PATCH] clang-format core/keyboard_nav/basic_cursor.js --- core/keyboard_nav/basic_cursor.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/core/keyboard_nav/basic_cursor.js b/core/keyboard_nav/basic_cursor.js index 9260fa62a..e9780e119 100644 --- a/core/keyboard_nav/basic_cursor.js +++ b/core/keyboard_nav/basic_cursor.js @@ -169,12 +169,9 @@ BasicCursor.prototype.getPreviousNode_ = function(node, isValid) { BasicCursor.prototype.validNode_ = function(node) { let isValid = false; const type = node && node.getType(); - if (type == ASTNode.types.OUTPUT || - type == ASTNode.types.INPUT || - type == ASTNode.types.FIELD || - type == ASTNode.types.NEXT || - type == ASTNode.types.PREVIOUS || - type == ASTNode.types.WORKSPACE) { + if (type == ASTNode.types.OUTPUT || type == ASTNode.types.INPUT || + type == ASTNode.types.FIELD || type == ASTNode.types.NEXT || + type == ASTNode.types.PREVIOUS || type == ASTNode.types.WORKSPACE) { isValid = true; } return isValid; @@ -217,8 +214,6 @@ BasicCursor.prototype.getRightMostChild_ = function(node) { return this.getRightMostChild_(newNode); }; -register( - Type.CURSOR, BasicCursor.registrationName, - BasicCursor); +register(Type.CURSOR, BasicCursor.registrationName, BasicCursor); exports = BasicCursor;