Skip to content

Commit

Permalink
Merge pull request #119 from synthmeat/master
Browse files Browse the repository at this point in the history
'package' wrapped so IDEs don't go on keyword red alert
  • Loading branch information
evantahler committed Feb 19, 2016
2 parents 7d35325 + e9d5a95 commit bc57c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ connection.prototype.connect = function(callback){

}else{

if(self.options.package && !self.options.pkg) {
if(self.options['package'] && !self.options.pkg) {
self.emit('Depreciation warning: You need to use \'pkg\' instead of \'package\'! Please update your configuration.');
self.options.pkg = self.options.package;
self.options.pkg = self.options['package'];
}
var pkg = require(self.options.pkg);
self.redis = pkg.createClient(self.options.port, self.options.host, self.options.options);
Expand Down

0 comments on commit bc57c8e

Please sign in to comment.