redgeoff/delta-pouch — pull request #9 by nolanlawson (2014-08-14 04:16:09+00:00)
Title: fix(getAndRemove): clean up with promises

Here's how I would rewrite `getAndRemove` using PouchDB's own promises. Note that instead of catching all errors, I'm explicitly catching only 404s. I have to ignore that statement in istanbul, since we can't really reproduce it unless there's a network failure or something like that.