Skip to content

Commit

Permalink
Cleanup for #98
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Oct 8, 2014
1 parent 8539765 commit 9842058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions lib/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,7 @@ internals.Policy.compile = function (options, serverSide) {
rule.staleTimeout = options.staleTimeout;
}

var hasDropOnError = options.dropOnError !== undefined && options.dropOnError !== null;
if (hasDropOnError) {
rule.dropOnError = options.dropOnError;
}
else {
rule.dropOnError = true;
}
rule.dropOnError = options.dropOnError !== undefined ? options.dropOnError : true; // Defaults to true

return rule;
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "catbox",
"description": "Multi-strategy object caching service",
"version": "3.4.3",
"version": "4.0.0",
"repository": "git://github.com/hapijs/catbox",
"main": "index",
"keywords": [
Expand Down

0 comments on commit 9842058

Please sign in to comment.