Skip to content

Commit

Permalink
merge with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
akhoury committed Nov 27, 2014
2 parents 5d8a461 + b7946dd commit 64db9b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node-persist.js
Expand Up @@ -561,7 +561,7 @@ var setOptions = function (userOptions) {
options = defaults;
} else {
for (var key in defaults) {
if (userOptions[key] != null) { // not null and not undefined
if (userOptions.hasOwnProperty(key)) {
options[key] = userOptions[key];
} else {
options[key] = defaults[key];
Expand Down Expand Up @@ -739,4 +739,4 @@ var parseFileSync = function(key, dir, hash) {
var isExpired = function (key) {
if (!options.ttl) return false;
return ttls[key] < (new Date()).getTime();
};
};

0 comments on commit 64db9b7

Please sign in to comment.