Skip to content

Commit

Permalink
fix: Disable false eslint warning (#23513)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jul 22, 2023
1 parent f28fc24 commit 9b1c903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/util/result.ts
Expand Up @@ -561,6 +561,7 @@ export class AsyncResult<T, E> implements PromiseLike<Result<T, E>> {
) => Result<U, E | EE> | AsyncResult<U, E | EE> | Promise<Result<U, E | EE>>
): AsyncResult<T | U, E | EE> {
const caughtAsyncResult = this.asyncResult.then((result) =>
// eslint-disable-next-line promise/no-nesting

This comment has been minimized.

Copy link
@Giangpro89

Giangpro89 Jul 22, 2023

Cảm ơn

result.catch(fn as never)
);
return AsyncResult.wrap(caughtAsyncResult);
Expand Down

0 comments on commit 9b1c903

Please sign in to comment.