Skip to content

Commit

Permalink
Minor: static import method to keep codacy happy.
Browse files Browse the repository at this point in the history
The static import already existed apparently...
  • Loading branch information
mvanaken committed Feb 10, 2024
1 parent cb8db0c commit e45c527
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public ImmutableList<Value> eval(final ParseState parseState, final Encoding enc
return evalImpl(parseState, NO_LIMIT, requestedScope);
}
return limit.evalSingle(parseState, encoding)
.map(limitValue -> limitValue.equals(NOT_A_VALUE) ? ImmutableList.create(NOT_A_VALUE) : evalImpl(parseState, limitValue.asNumeric().intValueExact(), requestedScope))
.map(limitValue -> limitValue.equals(NOT_A_VALUE) ? create(NOT_A_VALUE) : evalImpl(parseState, limitValue.asNumeric().intValueExact(), requestedScope))
.orElseThrow(() -> new IllegalArgumentException("Limit must evaluate to a non-empty value."));
}

Expand Down

0 comments on commit e45c527

Please sign in to comment.