Skip to content

Commit

Permalink
fix _this is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jun 10, 2016
1 parent dd14e18 commit 2a39cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,11 @@ Pipeline.prototype.exec = function (callback) {
scripts.push(script);
}

var _this = this;
if (!scripts.length) {
return execPipeline();
}

var _this = this;
return this.redis.script('exists', scripts.map(function (item) {
return item.sha;
})).then(function (results) {
Expand Down

0 comments on commit 2a39cb1

Please sign in to comment.