From c013231a48b0b76168ef8fc3fdc0da8ab5ee85fe Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Thu, 9 Feb 2012 21:00:42 +0000 Subject: [PATCH] Use "when" instead of "if" in the absence of an "else" expression --- package-build.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-build.el b/package-build.el index c7ab7d62..83ecdd03 100644 --- a/package-build.el +++ b/package-build.el @@ -298,8 +298,8 @@ If PKG-INFO is nil, an empty one is created." file-name version))) (print pkg-info) - (if (file-exists-p pkgdst) - (delete-file pkgdst t)) + (when (file-exists-p pkgdst) + (delete-file pkgdst t)) (copy-file pkgsrc pkgdst) (package-build-add-to-archive-contents pkg-info 'single))) (t