lib/dry/transaction/step_adapters/check.rb in dry-transaction-0.11.1 vs lib/dry/transaction/step_adapters/check.rb in dry-transaction-0.11.2

- old
+ new

@@ -1,10 +1,10 @@ module Dry module Transaction class StepAdapters # @api private class Check - include Dry::Monads::Either::Mixin + include Dry::Monads::Result::Mixin def call(operation, _options, args) input = args[0] res = operation.(*args) res == true || res.is_a?(Success) ? Success(input) : Failure(input)