Skip to content

Commit

Permalink
Use arrow function for callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaubert committed May 12, 2020
1 parent 6224247 commit f2caadb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function makePool (redisPool, database) {
no_ready_check: redisPool.options.noReadyCheck
});

client.on('error', function (err) {
client.on('error', (err) => {
redisPool._log({ db: database, action: 'error', err: err.message });

if (!settled) {
Expand All @@ -153,7 +153,7 @@ function makePool (redisPool, database) {
}
});

client.on('ready', function () {
client.on('ready', () => {
client.select(database, err => {
if (!settled) {
settled = true;
Expand Down

0 comments on commit f2caadb

Please sign in to comment.