From: cah Date: Fri, 18 Feb 2022 13:43:10 +0000 (+0100) Subject: Remove duplicate call to cleanup(). X-Git-Url: https://git.carlh.net/gitweb/?p=cdist.git;a=commitdiff_plain;h=a862b364888ff7b0cd30f6267309bab6ac56cdce Remove duplicate call to cleanup(). --- diff --git a/cdist b/cdist index 6315653..cdc6acf 100755 --- a/cdist +++ b/cdist @@ -1267,9 +1267,6 @@ def main(): if target is not None and not args.keep: target.cleanup() - if target is not None and not args.keep: - target.cleanup() - elif args.command == 'release': if args.minor is False and args.micro is False: raise Error('you must specify --minor or --micro')