Skip to content

Commit 09e13d9

Browse files
Apply suggestion from @samuel-williams-shopify
1 parent 33c03aa commit 09e13d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bake/async/container/supervisor.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ def memory_sample(duration: 10, connection_id:)
4444
operation = {do: :memory_sample, duration: duration}
4545

4646
# Use the forward operation to proxy the request to a worker:
47-
data = connection.call(do: :forward, operation: operation, connection_id: connection_id)
47+
response = connection.call(do: :forward, operation: operation, connection_id: connection_id)
4848

49-
if data && data.key?(:data)
50-
JSON.parse(data[:data], symbolize_names: true)
49+
if response && response.key?(:data)
50+
JSON.parse(response[:data], symbolize_names: true)
5151
else
52-
data
52+
response
5353
end
5454
end
5555
end

0 commit comments

Comments
 (0)