From fd22985e3361e62e5d31aec536153f1d5c09cd2d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 13 Mar 2020 20:59:20 +0000 Subject: [PATCH] cmd/postgresql-upgrade-database: fix RuboCop Style/ConditionalAssignment. --- cmd/postgresql-upgrade-database.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/postgresql-upgrade-database.rb b/cmd/postgresql-upgrade-database.rb index 0b0025e600f..61e85e80945 100755 --- a/cmd/postgresql-upgrade-database.rb +++ b/cmd/postgresql-upgrade-database.rb @@ -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