Skip to content

Commit

Permalink
Update for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jterapin committed Aug 28, 2024
1 parent 3b72c62 commit 5d171f6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions gems/aws-sdk-core/lib/aws-sdk-core/plugins/stub_responses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,16 @@ def stub_responses(context)
else
apply_stub(stub, resp, async_mode)
end
async_mode ? Seahorse::Client::AsyncResponse.new(
context: context,
stream: context[:input_event_stream_handler].event_emitter.stream,
sync_queue: Queue.new
) : resp

if async_mode
Seahorse::Client::AsyncResponse.new(
context: context,
stream: context[:input_event_stream_handler].event_emitter.stream,
sync_queue: Queue.new
)
else
resp
end
end

def apply_stub(stub, response, async_mode = false)
Expand Down

0 comments on commit 5d171f6

Please sign in to comment.