Skip to content

Commit

Permalink
Args by default set {} if not exists
Browse files Browse the repository at this point in the history
Small changes
  • Loading branch information
EgorKluch committed Jan 29, 2014
1 parent 7b0f0dc commit 41d41ea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
.idea
node_modules
etc
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var AccessManager = function () {
};
this.prepareHandlers = {
'default': function (action, args, next) {
if (null === args) args = {};
next(null, args);
}
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"email": "[email protected]>"
}
],
"description": "Friendly manager to check access",
"description": "Friendly manager to control access",
"main": "index.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit 41d41ea

Please sign in to comment.