mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 02:18:47 +00:00
Result: Make use of type hint
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user