Skip to content

Commit 37fd6f3

Browse files
committed
polish
1 parent 394b9fc commit 37fd6f3

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

lib/splitclient-rb/engine/events/events_delivery.rb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@ module SplitIoClient
44
module Engine
55
module Events
66
class EventsDelivery
7-
87
def initialize(config)
98
@config = config
109
end
1110

1211
def deliver(sdk_event, event_metadata, event_handler)
13-
begin
14-
event_handler.call(event_metadata)
15-
rescue StandardError => e
16-
@config.logger.error("Exception when calling handler for Sdk Event #{sdk_event}")
17-
@config.log_found_exception(__method__.to_s, e)
18-
end
12+
event_handler.call(event_metadata)
13+
rescue StandardError => e
14+
@config.logger.error("Exception when calling handler for Sdk Event #{sdk_event}")
15+
@config.log_found_exception(__method__.to_s, e)
1916
end
2017
end
2118
end

0 commit comments

Comments
 (0)