branch: elpa/cider
commit 9130c6493f339edf3aa24da928d1f1c4edef6582
Author: chaos <chaos@sympan>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Add comment about using `cond'
---
 cider-util.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cider-util.el b/cider-util.el
index bc73930179..e42988c65a 100644
--- a/cider-util.el
+++ b/cider-util.el
@@ -376,6 +376,8 @@ propertized (defaults to current buffer)."
 
 (defun cider--pkg-version ()
   "Extract CIDER's package version from its package metadata."
+  ;; Use `cond' below to avoid a compiler unused return value warning
+  ;; when `package-get-version' returns nil. See #3181.
   ;; FIXME: Inline the logic from package-get-version and adapt it
   (cond ((fboundp 'package-get-version)
          (package-get-version))))

Reply via email to