branch: elpa/magit
commit d092661c6142ecd32e98caf4349881b30bfe6836
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-log.el: Declare magit--any-wip-mode-enabled-p
---
 lisp/magit-log.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-log.el b/lisp/magit-log.el
index 41e4cd4bfd..3035684f2a 100644
--- a/lisp/magit-log.el
+++ b/lisp/magit-log.el
@@ -31,6 +31,7 @@
 (require 'magit-core)
 (require 'magit-diff)
 
+(declare-function magit--any-wip-mode-enabled-p "magit-wip" ())
 (declare-function magit-blob-visit "magit-files" (blob-or-file))
 (declare-function magit-cherry-apply "magit-sequence" (commit &optional args))
 (declare-function magit-insert-head-branch-header "magit-status"
@@ -509,9 +510,7 @@ commits before and half after."
     ("r" "current"           magit-reflog-current)
     ("O" "other"             magit-reflog-other)
     ("H" "HEAD"              magit-reflog-head)]
-   [:if (lambda ()
-          (and (fboundp 'magit--any-wip-mode-enabled-p)
-               (magit--any-wip-mode-enabled-p)))
+   [:if magit--any-wip-mode-enabled-p
     :description "Wiplog"
     ("i" "index"             magit-wip-log-index)
     ("w" "worktree"          magit-wip-log-worktree)]

Reply via email to