From 3098483e76ef7eebb5e0485eaaab60ef1a4f5d47 Mon Sep 17 00:00:00 2001 From: Yang Rong <65664302+yang-rong-0814@users.noreply.github.com> Date: Mon, 22 Nov 2021 17:29:14 +0800 Subject: [PATCH] Clean up the code using "(expr) ? true : false" The commit fd0625c7a9 of PG had improved code where were already using a boolean or used an expression that led to zero or one, making the extra bits unnecessary. This patch fixed the same problem in pg_rman. --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dir.c b/dir.c index 5861f610..bd91e875 100644 --- a/dir.c +++ b/dir.c @@ -597,7 +597,7 @@ dir_read_file_list(const char *root, const char *file_txt) file->read_size = 0; file->write_size = write_size; file->crc = crc; - file->is_datafile = (type == 'F' ? true : false); + file->is_datafile = (type == 'F'); file->linked = NULL; if (root) sprintf(file->path, "%s/%s", root, path);