Appease the linter

This commit is contained in:
amcmanu3 2022-06-21 17:36:50 -04:00
parent 97900cd283
commit b725054dcd

View File

@ -1515,12 +1515,10 @@ class PanelHandler(BaseHandler):
max_backups = bleach.clean(self.get_argument("max_backups", None))
server_obj = self.controller.servers.get_server_obj(server_id)
if (
not backup_path
== self.helper.wtol_path(
os.path.join(self.helper.backup_path, server_obj.server_uuid)
)
and backup_path.startswith(self.helper.wtol_path(self.controller.project_root))
if not backup_path == self.helper.wtol_path(
os.path.join(self.helper.backup_path, server_obj.server_uuid)
) and backup_path.startswith(
self.helper.wtol_path(self.controller.project_root)
):
self.redirect(
"/panel/error?error=Nefarious activities detected."