mirror of
https://github.com/Kir-Antipov/mc-publish.git
synced 2024-11-25 01:41:05 -05:00
Fixed the return type of isCurseForgeError
Previously, it would return `undefined` instead of `false` when `error` was undefined.
This commit is contained in:
parent
f9620d09b5
commit
4ea0380bed
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ export interface CurseForgeError {
|
|||
export function isCurseForgeError(error: unknown): error is CurseForgeError {
|
||||
const e = error as CurseForgeError;
|
||||
return (
|
||||
e &&
|
||||
!!e &&
|
||||
typeof e.errorCode === "number" &&
|
||||
typeof e.errorMessage === "string"
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue