lib/pricehubble/utils/decision.rb in pricehubble-0.4.2 vs lib/pricehubble/utils/decision.rb in pricehubble-1.0.0

- old
+ new

@@ -47,10 +47,10 @@ # # @param on_error [Symbol] the error way def initialize(on_error: :fail) @on_error = on_error @bang_proc = -> { StandardError.new } - @fail_proc = @good_proc = -> { nil } + @fail_proc = @good_proc = -> {} end # Register a new error (bang) way. Requires a block. # # @param block [Proc] the block to run in case of errors