Simple refactor: isSingleInput already check if input is a collection

Resolves #269
This commit is contained in:
neokeld
2019-02-27 10:34:32 +01:00
committed by Oleg Zhurakousky
parent 656741958b
commit 3f4401f9be

View File

@@ -92,9 +92,7 @@ public class AzureSpringBootRequestHandler<I, O> extends AbstractSpringFunctionA
protected Flux<?> extract(Object input) {
if (!isSingleInput(this.getFunction(), input)) {
if (input instanceof Collection) {
return Flux.fromIterable((Iterable<?>) input);
}
return Flux.fromIterable((Iterable<?>) input);
}
return Flux.just(input);
}