Skip to content

Commit 9130c64

Browse files
chaosbbatsov
chaos
authored andcommitted
Add comment about using `cond'
1 parent 971f62b commit 9130c64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cider-util.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ propertized (defaults to current buffer)."
376376

377377
(defun cider--pkg-version ()
378378
"Extract CIDER's package version from its package metadata."
379+
;; Use `cond' below to avoid a compiler unused return value warning
380+
;; when `package-get-version' returns nil. See #3181.
379381
;; FIXME: Inline the logic from package-get-version and adapt it
380382
(cond ((fboundp 'package-get-version)
381383
(package-get-version))))

0 commit comments

Comments
 (0)