[Minor] Code cleanup

This commit is contained in:
Robert von Burg 2021-12-06 14:12:15 +01:00
parent 7145b0f823
commit 6e3218540b
1 changed files with 2 additions and 3 deletions

View File

@ -852,9 +852,8 @@ public class GenericReport extends ReportPolicy {
* @return the stream of {@link StrolchRootElement StrolchRootElement} * @return the stream of {@link StrolchRootElement StrolchRootElement}
*/ */
protected Stream<? extends StrolchRootElement> queryRows() { protected Stream<? extends StrolchRootElement> queryRows() {
if (isParallel()) Stream<? extends StrolchRootElement> stream = getStreamFor(getObjectTypeParam());
return getStreamFor(getObjectTypeParam()).parallel(); return isParallel() ? stream.parallel() : stream;
return getStreamFor(getObjectTypeParam());
} }
protected StringParameter getObjectTypeParam() { protected StringParameter getObjectTypeParam() {