Skip to content

Commit 1a0af15

Browse files
committed
Use COND instead of IF and PROGN
COND forms are evaluated as implicit PROGN
1 parent 4af0894 commit 1a0af15

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

quicklisp/client-info.lisp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@
219219

220220
(defun local-client-info ()
221221
(let ((info-file (qmerge "client-info.sexp")))
222-
(if (probe-file info-file)
223-
(load-client-info info-file)
224-
(progn
225-
(warn "Missing client-info.sexp, using mock info")
226-
(mock-client-info)))))
222+
(cond ((probe-file info-file)
223+
(load-client-info info-file))
224+
(t
225+
(warn "Missing client-info.sexp, using mock info")
226+
(mock-client-info)))))
227227

228228
(defun newest-client-info (&optional (info (local-client-info)))
229229
(let ((latest (subscription-url info)))

quicklisp/impl-util.lisp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,12 @@ quicklisp at CL startup."
319319
(ql-ccl:delete-directory pathname)))
320320

321321
(defimplementation (delete-directory-tree :qualifier :around) (pathname)
322-
(if (directoryp pathname)
323-
(call-next-method)
324-
(progn
325-
(warn "delete-directory-tree - not a directory, ~
326-
deleting anyway -- ~s" pathname)
327-
(delete-file pathname))))
322+
(cond ((directoryp pathname)
323+
(call-next-method))
324+
(t
325+
(warn "delete-directory-tree - not a directory, ~
326+
deleting anyway -- ~s" pathname)
327+
(delete-file pathname))))
328328

329329
(defun map-directory-tree (directory fun)
330330
"Call FUN for every file in directory and all its subdirectories,

0 commit comments

Comments
 (0)