Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed May 6, 2024
1 parent eef1060 commit d2a377f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@uppy/companion/src/server/emitter/redis-emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ module.exports = (redisClient, redisPubSubScope) => {
try {
args = JSON.parse(message)
} catch (ex) {
return handleError(new Error(`Invalid JSON received! Channel: ${eventName} Message: ${message}`))
handleError(new Error(`Invalid JSON received! Channel: ${eventName} Message: ${message}`))
return
}
return handler(...args)
handler(...args)
}

let handlersByThisEventName = handlersByEvent.get(eventName)
Expand Down

0 comments on commit d2a377f

Please sign in to comment.