Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Apr 30, 2024
1 parent 5f7933a commit 1876827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafast/grafast/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function flagError<TError extends Error = Error>(
* @internal
*/
export function isFlaggedValue(value: object): value is FlaggedValue {
return value !== null && Object.hasOwn(value, $$flagged);
return Object.hasOwn(value, $$flagged);
}

export class SafeError<
Expand Down

0 comments on commit 1876827

Please sign in to comment.