cmd/postgresql-upgrade-database: fix RuboCop Style/ConditionalAssignment.

master
Mike McQuaid 2020-03-13 20:59:20 +00:00
parent bc4e9ade51
commit fd22985e33
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
1 changed files with 3 additions and 3 deletions

View File

@ -101,10 +101,10 @@ module Homebrew
next if value.empty?
if setting == "server_encoding"
initdb_args += ["-E #{value}"]
initdb_args += if setting == "server_encoding"
["-E #{value}"]
else
initdb_args += ["--#{setting.tr!("_", "-")}=#{value}"]
["--#{setting.tr!("_", "-")}=#{value}"]
end
end