You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Remove print helper
This commit is contained in:
committed by
Ruben Bridgewater
parent
47242b342a
commit
ce3227dedd
10
lib/utils.js
10
lib/utils.js
@ -30,15 +30,6 @@ function replyToStrings (reply) {
|
||||
return reply;
|
||||
}
|
||||
|
||||
function print (err, reply) {
|
||||
if (err) {
|
||||
// A error always begins with Error:
|
||||
console.log(err.toString());
|
||||
} else {
|
||||
console.log('Reply: ' + reply);
|
||||
}
|
||||
}
|
||||
|
||||
var camelCase;
|
||||
// Deep clone arbitrary objects with arrays. Can't handle cyclic structures (results in a range error)
|
||||
// Any attribute with a non primitive value besides object and array will be passed by reference (e.g. Buffers, Maps, Functions)
|
||||
@ -125,7 +116,6 @@ function replyInOrder (self, callback, err, res, queue) {
|
||||
module.exports = {
|
||||
reply_to_strings: replyToStrings,
|
||||
reply_to_object: replyToObject,
|
||||
print: print,
|
||||
err_code: /^([A-Z]+)\s+(.+)$/,
|
||||
monitor_regex: /^[0-9]{10,11}\.[0-9]+ \[[0-9]+ .+\]( ".+?")+$/,
|
||||
clone: convenienceClone,
|
||||
|
Reference in New Issue
Block a user