Skip to content

Commit d8b64bf

Browse files
authored
refactor simplify fix
1 parent 832d555 commit d8b64bf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/react/server_rendering.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ module ServerRendering
1717
def self.reset_pool
1818
options = { size: pool_size, timeout: pool_timeout }
1919

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
20+
@pool = ConnectionPool.new(**options) { renderer.new(renderer_options) }
2621
end
2722

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

0 commit comments

Comments
 (0)