aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/connection.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-08 15:59:37 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-08 15:59:37 +0900
commit0c1db0fb1db8f66d627c5e24ba538a8f80d091d1 (patch)
tree0e7a06669e38a645f9f0efb8fcc0683a97b39fbc /lib/plum/connection.rb
parentc803f957cd0fed1ae65c2d1108b3e71b1c90fd38 (diff)
downloadplum-0c1db0fb1db8f66d627c5e24ba538a8f80d091d1.tar.gz
style: prefer '{ |x|' to '{|x|'
Diffstat (limited to 'lib/plum/connection.rb')
-rw-r--r--lib/plum/connection.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plum/connection.rb b/lib/plum/connection.rb
index 0268487..0ba5989 100644
--- a/lib/plum/connection.rb
+++ b/lib/plum/connection.rb
@@ -26,8 +26,8 @@ module Plum
def initialize(writer, local_settings = {})
@state = :open
@writer = writer
- @local_settings = Hash.new {|hash, key| DEFAULT_SETTINGS[key] }.merge!(local_settings)
- @remote_settings = Hash.new {|hash, key| DEFAULT_SETTINGS[key] }
+ @local_settings = Hash.new { |hash, key| DEFAULT_SETTINGS[key] }.merge!(local_settings)
+ @remote_settings = Hash.new { |hash, key| DEFAULT_SETTINGS[key] }
@buffer = String.new
@streams = {}
@hpack_decoder = HPACK::Decoder.new(@local_settings[:header_table_size])