1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

chore: refactor flush and error

This commit is contained in:
Ruben Bridgewater
2017-05-28 00:13:17 +02:00
parent 2aa3b68fc6
commit 8da9e98fe6
7 changed files with 95 additions and 94 deletions

View File

@@ -107,6 +107,12 @@ Multi.prototype.quit = function quit () {
return this
}
/**
* @description Return a function that receives the raw info data and convert to an object.
*
* @param {RedisClient} client
* @returns {function}
*/
function infoCallback (client) {
return function (err, res) {
if (err) {