Commit fbbd28b1ef7a06424730da1f4789a228aacff4f4

Authored by Eduardo Silva Araújo
Committed by Rafael Reggiani Manzo
1 parent 63624816
Exists in colab

Call `set_header` directly instead of using `call`

The previous syntax was over complicated. This one gets the job done the
same way.

Signed-off-by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
features/support/header.rb
@@ -13,6 +13,6 @@ module HeaderUtils @@ -13,6 +13,6 @@ module HeaderUtils
13 # The call 'headers.each(&method(:set_header))' breaks on ruby 2.0.0-p598, which is the 13 # The call 'headers.each(&method(:set_header))' breaks on ruby 2.0.0-p598, which is the
14 # default version on CentOS 7. When that SO updates ruby, this should be reverted to 14 # default version on CentOS 7. When that SO updates ruby, this should be reverted to
15 # the more concise syntax. 15 # the more concise syntax.
16 - headers.each { |key, value| method(:set_header).call(key, value) } 16 + headers.each { |key, value| set_header(key, value) }
17 end 17 end
18 end 18 end