Permalink
Browse files

Fix unnecessary or statement

  • Loading branch information...
1 parent 2b6ea67 commit 629ae134db254cf05ea020b0a115686e680642fe @rooftopsparrow rooftopsparrow committed Jul 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nosqlite.coffee
View
@@ -111,7 +111,7 @@ nosqlite.Connection::database = (name, mode) ->
postSync: (obj) ->
obj.id = cuid() unless obj.id or obj._id
- @_writeSync obj.id or obj._id or cuid(), JSON.stringify(obj, null, 2)
+ @_writeSync obj.id or obj._id, JSON.stringify(obj, null, 2)
obj.id or obj._id
# Find a doc

0 comments on commit 629ae13

Please sign in to comment.