A reverse is applicable on a condition

This commit is contained in:
Flowsqy 2022-02-23 00:40:35 +01:00
parent 42f8ad4744
commit 1eaab510eb

View File

@ -230,7 +230,7 @@ public class FormatParser {
// Create reversed
final Condition<?> reversed;
final boolean isValue = nextToken.getType() == Token.VALUE;
if (isValue || nextToken.getType() == Token.VALUE) {
if (isValue || nextToken.getType() == Token.CONDITION) {
if (isValue) {
final String value = (String) nextToken.getValue();
final P provided = providerFunction.apply(value);