mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Simplification
This commit is contained in:
parent
0c15600700
commit
cf658cf57d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user