Skip to content
Browse files

update for outcome rework

  • Loading branch information...
1 parent 5c9b2a1 commit db671c2856ccec76df9b95db5e9736f4628b4f96 @cloudshift committed
Showing with 1 addition and 7 deletions.
  1. +1 −7 cloudshift/data/Sqlite3Bucket.hx
View
8 cloudshift/data/Sqlite3Bucket.hx
@@ -209,13 +209,7 @@ class Sqlite3Bucket<T> implements Bucket<T> {
public function delete(o:T):Outcome<String,T> {
var prm = Core.outcome();
- deleteByOid(Data.oid(o))
- .bad(function(reason) {
- prm.resolve(Left(reason));
- })
- .good(function(deleted) {
- prm.resolve(Right(o));
- });
+ deleteByOid(Data.oid(o)).deliver(prm.resolve);
return prm;
}

0 comments on commit db671c2

Please sign in to comment.
Something went wrong with that request. Please try again.