Skip to content

Commit f265a2b

Browse files
committed
Refactor
1 parent 78bdfba commit f265a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aggregate_root/lib/aggregate_root/default_apply_strategy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def on_handler(aggregate, event_type)
2424

2525
def missing_handler(aggregate, event_type)
2626
if strict
27-
lambda { |event| raise MissingHandler.new("Missing handler method on aggregate #{aggregate.class} for #{event_type}") }
27+
raise MissingHandler.new("Missing handler method on aggregate #{aggregate.class} for #{event_type}")
2828
else
2929
NullHandler
3030
end

0 commit comments

Comments
 (0)