We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a813fd commit 307069fCopy full SHA for 307069f
src/main/webapp/ui/src/util/optional.ts
@@ -106,7 +106,7 @@ export class Optional<T> {
106
107
// altValueGetter doesn't have to return a value; it could throw an exception
108
orElseGet<U>(altValueGetter: () => U): T | U {
109
- return this.destruct(altValueGetter, (value) => value as T | U);
+ return this.destruct<T | U>(altValueGetter, (value) => value);
110
}
111
112
/*
0 commit comments