Result: Make use of type hint

This commit is contained in:
Henry Mercer
2026-01-27 15:05:03 +00:00
parent 9fda641d8d
commit 9ea34c5169
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1319,6 +1319,6 @@ export class Result<T, E> {
}
orElse(defaultValue: T): T {
return this._ok ? (this.value as T) : defaultValue;
return this.isOk() ? this.value : defaultValue;
}
}