Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class Ok<T, E> implements IResult<T, E> {
}

isErr(): this is Err<T, E> {
return !this.isOk()
return false
}

map<A>(f: (t: T) => A): Result<A, E> {
Expand Down Expand Up @@ -424,7 +424,7 @@ export class Err<T, E> implements IResult<T, E> {
}

isErr(): this is Err<T, E> {
return !this.isOk()
return true
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down