Simple refactor: isSingleInput already check if input is a collection
Resolves #269
This commit is contained in:
committed by
Oleg Zhurakousky
parent
656741958b
commit
3f4401f9be
@@ -92,9 +92,7 @@ public class AzureSpringBootRequestHandler<I, O> extends AbstractSpringFunctionA
|
|||||||
|
|
||||||
protected Flux<?> extract(Object input) {
|
protected Flux<?> extract(Object input) {
|
||||||
if (!isSingleInput(this.getFunction(), input)) {
|
if (!isSingleInput(this.getFunction(), input)) {
|
||||||
if (input instanceof Collection) {
|
return Flux.fromIterable((Iterable<?>) input);
|
||||||
return Flux.fromIterable((Iterable<?>) input);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return Flux.just(input);
|
return Flux.just(input);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user