lib/pricehubble/client/request/data_sanitization.rb in pricehubble-0.4.2 vs lib/pricehubble/client/request/data_sanitization.rb in pricehubble-1.0.0
- old
+ new
@@ -16,10 +16,10 @@
body = env[:body]
# Perform the data compaction and the hash key transformation,
# when the body is available and a hash
env[:body] = body.deep_compact.deep_camelize_keys \
- if body&.is_a?(Hash)
+ if body.is_a?(Hash)
@app.call(env)
end
end
end