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

Whitespace and other JSHint changes.

This commit is contained in:
Matt Ranney
2012-09-10 22:50:54 -07:00
parent 63f4f5cdf2
commit 670c256e35
6 changed files with 58 additions and 65 deletions

View File

@@ -1,5 +1,3 @@
var to_array = require("./to_array");
// Queue class adapted from Tim Caswell's pattern library
// http://github.com/creationix/pattern/blob/master/lib/pattern/queue.js
@@ -49,13 +47,13 @@ Queue.prototype.getLength = function () {
return this.head.length - this.offset + this.tail.length;
};
Object.defineProperty(Queue.prototype, 'length', {
Object.defineProperty(Queue.prototype, "length", {
get: function () {
return this.getLength();
}
});
if(typeof module !== 'undefined' && module.exports) {
module.exports = Queue;
if (typeof module !== "undefined" && module.exports) {
module.exports = Queue;
}