Permalink
Browse files

Small tidy up in DB

  • Loading branch information...
1 parent 226485c commit c5955f8c3dfec8cdf00240f139163ab9b935eddb @wezm committed Apr 5, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/db.coffee
View
@@ -65,10 +65,10 @@ class DB
status: (args...) ->
switch args.length
when 1
- options = {}
+ options = {}
callback = args[0]
when 2
- options = args[0]
+ options = args[0]
callback = args[1]
else
throw new Error("Invalid number of arguments (#{args.length}) to status");
@@ -425,7 +425,9 @@ class DB
# [key], callback
getCursor: (args...) ->
switch args.length
- when 1 then callback = args[0]
+ when 1
+ options = {}
+ callback = args[0]
when 2
key = args[0]
callback = args[1]

0 comments on commit c5955f8

Please sign in to comment.