Skip to content

Commit

Permalink
Remove unnecessary if
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshelkov committed Feb 11, 2023
1 parent 999c9d7 commit 1adb968
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"error",
"error-handling"
],
"version": "1.0.23",
"version": "1.0.24",
"author": "Alex Shelkovskiy <alexshelkov@gmail.com>",
"repository": "https://github.com/alexshelkov/result",
"license": "MIT",
Expand Down
4 changes: 0 additions & 4 deletions src/checks.ts
Expand Up @@ -39,10 +39,6 @@ export const isFailureLike = <Error>(input: unknown): input is Failure<Error> =>
return false;
}

if (input.status !== 'error') {
return false;
}

return input.status === 'error';
};

Expand Down

0 comments on commit 1adb968

Please sign in to comment.