* [misc] simplify code.

This commit is contained in:
liugang
2024-07-09 14:14:08 +08:00
committed by 王怡栋
parent e0a3b08229
commit 7ebab27aba
+2 -4
View File
@@ -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;
}