diff --git a/src/com/craftinginterpreters/lox/Interpreter.java b/src/com/craftinginterpreters/lox/Interpreter.java index 6b3e409..9d0cfb3 100644 --- a/src/com/craftinginterpreters/lox/Interpreter.java +++ b/src/com/craftinginterpreters/lox/Interpreter.java @@ -15,9 +15,11 @@ class Interpreter implements Expr.Visitor, Stmt.Visitor { Object left = evaluate(expr.left); if (expr.operator.type == TokenType.OR) { - if (isTruthy(left)) return left; + if (isTruthy(left)) + return left; } else { - if (!isTruthy(left)) return left; + if (!isTruthy(left)) + return left; } return evaluate(expr.right);