Skip to content

Commit

Permalink
Add handling of block in response delegation (#3170)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextwoods authored Jan 21, 2025
1 parent 9ed55ad commit eedc964
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gems/aws-sdk-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Unreleased Changes
------------------

* Issue - Add handling of block in response delegation (#3169).

3.216.0 (2025-01-15)
------------------

Expand Down
2 changes: 2 additions & 0 deletions gems/aws-sdk-core/lib/seahorse/client/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def on_complete(&block)
# Necessary to define as a subclass of Delegator
# @api private
def __getobj__
return yield if block_given? && !defined?(@data)

@data
end

Expand Down

0 comments on commit eedc964

Please sign in to comment.