Skip to content

Commit

Permalink
Merge pull request #465 from jeremyevans/another-ruby27-keyword-warning
Browse files Browse the repository at this point in the history
Fix another ruby 2.7 keyword warning
  • Loading branch information
larskanis authored Jun 21, 2022
2 parents 63b4760 + 6eac3d4 commit 5c29e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pg/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,8 @@ class << self
# connection will have its +client_encoding+ set accordingly.
#
# Raises a PG::Error if the connection fails.
def new(*args, **kwargs)
conn = connect_to_hosts(*args, **kwargs)
def new(*args)
conn = connect_to_hosts(*args)

if block_given?
begin
Expand Down

0 comments on commit 5c29e28

Please sign in to comment.