From 546a8e246bd4491a8f42d914123eff737d3c558b Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Sat, 15 Jun 2024 19:46:27 +0200 Subject: [PATCH] fix --- .../biscuit/token/builder/parser/ExpressionParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/biscuitsec/biscuit/token/builder/parser/ExpressionParser.java b/src/main/java/org/biscuitsec/biscuit/token/builder/parser/ExpressionParser.java index b333d6dd..b5028709 100644 --- a/src/main/java/org/biscuitsec/biscuit/token/builder/parser/ExpressionParser.java +++ b/src/main/java/org/biscuitsec/biscuit/token/builder/parser/ExpressionParser.java @@ -128,7 +128,7 @@ public static Either> expr2(String s) { Either> res2 = binary_op2(s); if (res2.isLeft()) { - return Either.left(res2.getLeft()); + return Either.right(t1); } Tuple2 t2 = res2.get();