Skip to content

Commit

Permalink
the begin block is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronLasseigne committed Jan 10, 2021
1 parent f97e64f commit 019274b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/active_interaction/concerns/runnable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ def run
return self.result = nil unless valid?

self.result = run_callbacks(:execute) do
begin
execute
rescue Interrupt => e
errors.backtrace = e.errors.backtrace || e.backtrace
errors.merge!(e.errors)
end
execute
rescue Interrupt => e
errors.backtrace = e.errors.backtrace || e.backtrace
errors.merge!(e.errors)
end
end

Expand Down

0 comments on commit 019274b

Please sign in to comment.