Skip to content

Commit

Permalink
Return the object if get() is called with no key.
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 11, 2010
1 parent 786455d commit 9c5c264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/ini.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ function save (cb) {
})
}
function del (key, c) { delete (c || config)[key] }
function get (key, c) { return (c || config)[key] }
function get (key, c) { return key ? (c || config)[key] : (c || config) }
function set (key, value, c) { return (c || config)[key] = value }

0 comments on commit 9c5c264

Please sign in to comment.