This commit is contained in:
gnembon committed 2020-06-01 03:25:09 -03:00
1 parent d5cb99d7f9
commit f97ca9e9bd
4 files changed
+2 -15

No files matched your search

@@ -426,14 +426,6 @@ public class ShapeDispatcher
public static class DimensionParam extends StringParam
{
@Override
public Value validate(CarpetContext cc, Value value)
{
String dimStr = value.getString();
Optional<DimensionType> dimOp = Registry.DIMENSION_TYPE.getOrEmpty(new Identifier(dimStr));
if (!dimOp.isPresent()) throw new InternalExpressionException("Unknown dimension "+dimStr);
return value;
}
@Override
public boolean appliesTo(ExpiringShape shape) { return true; }
@Override