Skip to content

Commit e9348c6

Browse files
committed
refactor simplify fix
1 parent 832d555 commit e9348c6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/react/server_rendering.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ module ServerRendering
1616
# @return [void]
1717
def self.reset_pool
1818
options = { size: pool_size, timeout: pool_timeout }
19-
20-
# ConnectionPool v3+ uses keyword arguments rather than positional
21-
@pool = if ConnectionPool::VERSION[0] <= "2"
22-
ConnectionPool.new(options) { renderer.new(renderer_options) }
23-
else
24-
ConnectionPool.new(**options) { renderer.new(renderer_options) }
25-
end
19+
@pool = ConnectionPool.new(**options) { renderer.new(renderer_options) }
2620
end
2721

2822
# Check a renderer out of the pool and use it to render the component.

0 commit comments

Comments
 (0)