Skip to content

Commit b3ecf39

Browse files
committed
Ensure payload is distinct from what's passed in
This is because we modify what comes in (with, at the very least, :result).
1 parent 3ca44f7 commit b3ecf39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/github/ldap/instrumentation.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module Instrumentation
1313
#
1414
# Returns the return value of the block.
1515
def instrument(event, payload = {})
16+
payload = (payload || {}).dup
1617
if instrumentation_service
1718
instrumentation_service.instrument(event, payload) do |payload|
1819
payload[:result] = yield(payload) if block_given?

0 commit comments

Comments
 (0)