Skip to content

Commit 9ea34c5

Browse files
committed
Result: Make use of type hint
1 parent 9fda641 commit 9ea34c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/init-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,6 @@ export class Result<T, E> {
13191319
}
13201320

13211321
orElse(defaultValue: T): T {
1322-
return this._ok ? (this.value as T) : defaultValue;
1322+
return this.isOk() ? this.value : defaultValue;
13231323
}
13241324
}

0 commit comments

Comments
 (0)