Use "when" instead of "if" in the absence of an "else" expression

This commit is contained in:
Steve Purcell 2012-02-09 21:00:42 +00:00
parent f31edc2997
commit c013231a48

View file

@ -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