From 7ebab27aba92c2dc769ed4981d1b7dc9845fdfdd Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 9 Jul 2024 14:10:59 +0800 Subject: [PATCH] * [misc] simplify code. --- module/backup/model.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/backup/model.php b/module/backup/model.php index f919679233..5b0879353e 100644 --- a/module/backup/model.php +++ b/module/backup/model.php @@ -284,10 +284,8 @@ class backupModel extends model if(file_exists($backupPath . $name . ".{$type}")) return $backupPath . $name . ".{$type}"; if(file_exists($backupPath . $name . ".{$type}.php")) return $backupPath . $name . ".{$type}.php"; } - else - { - if(file_exists($backupPath . $name . ".{$type}")) return $backupPath . $name . ".{$type}"; - } + + if(file_exists($backupPath . $name . ".{$type}")) return $backupPath . $name . ".{$type}"; return false; }