Remove explicit type checking and render to string always

This commit is contained in:
Sipke Schoorstra 2021-04-26 14:08:33 +02:00
parent 10d77b7365
commit 57c8fc6bcd

View file

@ -17,9 +17,6 @@ namespace Elsa.Scripting.Liquid.Filters
public async ValueTask<FluidValue> ProcessAsync(FluidValue input, FilterArguments arguments, TemplateContext context)
{
if (input.Type != FluidValues.String)
throw new NotSupportedException("Unrecognized FluidValue");
var queryType = arguments.Values.FirstOrDefault()?.ToStringValue() ?? "name";
var queryValue = input.ToStringValue().ToLowerInvariant();