[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}
*/
protected Stream<? extends StrolchRootElement> queryRows() {
if (isParallel())
return getStreamFor(getObjectTypeParam()).parallel();
return getStreamFor(getObjectTypeParam());
Stream<? extends StrolchRootElement> stream = getStreamFor(getObjectTypeParam());
return isParallel() ? stream.parallel() : stream;
}
protected StringParameter getObjectTypeParam() {