diff --git a/lib/dry/transaction/instance_methods.rb b/lib/dry/transaction/instance_methods.rb index 5bdb77e..6a617df 100644 --- a/lib/dry/transaction/instance_methods.rb +++ b/lib/dry/transaction/instance_methods.rb @@ -86,7 +86,6 @@ def method_missing(name, *args, &block) end def resolve_operation(step, **operations) - # rubocop:disable Lint/DuplicateBranch if step.internal? && operations[step.name] operations[step.name] elsif methods.include?(step.name) || private_methods.include?(step.name) @@ -98,7 +97,6 @@ def resolve_operation(step, **operations) else raise MissingStepError, step.name end - # rubocop:enable Lint/DuplicateBranch end def assert_valid_step_args(step_args)