Simplification

This commit is contained in:
Ihromant 2020-06-12 14:01:53 +03:00 committed by Alexey Andreev
parent 0c15600700
commit cf658cf57d

View File

@ -63,7 +63,7 @@ public final class TOptional<T> {
}
public TStream<T> stream() {
if (!isPresent()) {
if (value == null) {
return TStream.empty();
} else {
return TStream.of(value);