From 1be71d920057f0b1bad2659167c252db64cf3d0c Mon Sep 17 00:00:00 2001 From: ma Date: Thu, 31 Oct 2024 10:31:20 +0100 Subject: [PATCH] code cleanup --- qmprestore | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qmprestore b/qmprestore index e2abda6..a92284b 100755 --- a/qmprestore +++ b/qmprestore @@ -150,25 +150,23 @@ if action == "merge": if image.merge(argv): log.info("Image file merge successful.") sys.exit(0) - sys.exit(1) if action == "rebase": log.info("Rebasing images in source folder: [%s]", argv.dir) if image.rebase(argv): log.info("Image file rebase successful.") sys.exit(0) - sys.exit(1) if action == "snapshotrebase": log.info("Rebasing using snapshot images in source folder: [%s]", argv.dir) if image.snapshot_rebase(argv): log.info("Image file rebase successful.") sys.exit(0) - sys.exit(1) if action == "commit": log.info("Rebasing and committing images in source folder: [%s]", argv.dir) if image.commit(argv): log.info("Image file rebase and commit successful.") sys.exit(0) - sys.exit(1) + +sys.exit(1)