clang-format core/keyboard_nav/basic_cursor.js

This commit is contained in:
kozbial
2021-07-19 18:02:39 -07:00
committed by Monica Kozbial
parent 4a3d67abeb
commit 2ef8b2c86b

View File

@@ -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;