1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

remove double 'util' and 'Queue' from requires

ex: require('./lib/util').util;
This commit is contained in:
Zachary Scott
2011-11-15 09:23:42 -05:00
committed by Matt Ranney
parent 336030a33d
commit c83c285213
6 changed files with 11 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
// Support for very old versions of node. At some point, we should abandon this.
var minor = process.versions.node.split('.')[1];
if (minor > 2) {
exports.util = require("util");
module.exports = require("util");
} else {
exports.util = require("sys");
module.exports = require("sys");
}