PostgreSQL@12: Fix style linter warning

master
Markus Wein 2020-11-19 14:25:39 +01:00 committed by Mike McQuaid
parent 14aa20c45b
commit 77d125914c
1 changed files with 6 additions and 6 deletions

View File

@ -92,19 +92,19 @@ class PostgresqlAT12 < Formula
# and has a PG_VERSION file, which should indicate that the versioned
# data dir is in use. Otherwise, returns the old data dir path.
def postgresql_datadir
unless versioned_data_dir_exists?
"#{var}/postgres"
else
if versioned_data_dir_exists?
"#{var}/#{name}"
else
"#{var}/postgres"
end
end
# Same as with the data dir - use old log file if
def postgresql_log_path
unless versioned_data_dir_exists?
"#{var}/log/postgres"
else
if versioned_data_dir_exists?
"#{var}/log/#{name}"
else
"#{var}/log/postgres"
end
end