Skip to content

Commit

Permalink
fix: fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 15, 2023
1 parent d909595 commit 2918412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ function errorHandler(
err.message === 'Connection is closed.' ||
err.name === 'RedisError' ||
err.name === 'MaxRetriesPerRequestError' ||
(err.constructor && Object.getPrototypeOf(err.constructor).name === 'RedisError')
(err.constructor &&
Object.getPrototypeOf(err.constructor).name === 'RedisError')
) {
// redis errors (e.g. ioredis' MaxRetriesPerRequestError)
err.status = 408;
Expand Down

0 comments on commit 2918412

Please sign in to comment.