lib/ledger_sync/domains/operation.rb in ledger_sync-domains-1.0.1 vs lib/ledger_sync/domains/operation.rb in ledger_sync-domains-1.0.2
- old
+ new
@@ -82,13 +82,10 @@
operation: self
)
)
end
- unless valid?
- failure(errors)
- return
- end
+ return failure(errors) unless valid?
@result = begin
operate
rescue LedgerSync::Error => e
failure(e)