Skip to content

Commit 9e937a0

Browse files
committed
Remove unused @response instance variable.
1 parent d393490 commit 9e937a0

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/async/websocket/connection.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,16 @@ def self.call(framer, protocol = [], extensions = nil, **options)
3030
end
3131
end
3232

33-
def initialize(framer, protocol = nil, response: nil, **options)
33+
def initialize(framer, protocol = nil, **options)
3434
super(framer, **options)
3535

3636
@protocol = protocol
37-
@response = response
3837
end
3938

4039
def reusable?
4140
false
4241
end
4342

44-
def close
45-
super
46-
47-
if @response
48-
@response.finish
49-
@response = nil
50-
end
51-
end
52-
5343
attr :protocol
5444

5545
def call

0 commit comments

Comments
 (0)