From 6f1ba680abfd56514936020a96451fb0624fe011 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Sun, 23 Feb 2020 22:04:01 +0300 Subject: [PATCH] [Issue #171] minor fixes --- src/restore.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/restore.c b/src/restore.c index 391741d6..583279a4 100644 --- a/src/restore.c +++ b/src/restore.c @@ -1056,12 +1056,10 @@ create_recovery_conf(time_t backup_id, fio_fprintf(fp, "standby_mode = 'on'\n"); #endif - if(params->primary_conninfo) + if (params->primary_conninfo) fio_fprintf(fp, "primary_conninfo = '%s'\n", params->primary_conninfo); - else{ - if (backup->primary_conninfo) - fio_fprintf(fp, "primary_conninfo = '%s'\n", backup->primary_conninfo); - } + else if (backup->primary_conninfo) + fio_fprintf(fp, "primary_conninfo = '%s'\n", backup->primary_conninfo); } if (pitr_requested)