Skip to content

Commit cc4ba94

Browse files
committed
pedantic, but consistent: multiline blocks should be do/end
1 parent 7c75589 commit cc4ba94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎lib/goliath/connection.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ class Connection < EM::Connection
1515
attr_reader:parser
1616

1717
AsyncResponse=[-1,{},[]]
18-
1918
defpost_init
2019
@current=nil
2120
@requests=[]
@@ -33,12 +32,13 @@ def post_init
3332
env[REMOTE_ADDR]=remote_address
3433

3534
r=Goliath::Request.new(@app,self,env)
36-
r.parse_header(h,@parser){
35+
r.parse_header(h,@parser)do
3736
@api.set_event_handler!(env)
3837
env[ASYNC_HEADERS]=env.event_handler.method(:on_headers)ifenv.event_handler.respond_to?:on_headers
3938
env[ASYNC_BODY]=env.event_handler.method(:on_body)ifenv.event_handler.respond_to?:on_body
4039
env[ASYNC_CLOSE]=env.event_handler.method(:on_close)ifenv.event_handler.respond_to?:on_close
41-
}
40+
end
41+
4242
@requests.push(r)
4343
end
4444

0 commit comments

Comments
(0)