branch: elpa/undo-fu commit 545e29459e71a9aca81c96c1385d43a5696e27e9 Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@gmail.com>
Cleanup: resolve double negation warning --- undo-fu.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/undo-fu.el b/undo-fu.el index b7bc8a3671..03a418a193 100644 --- a/undo-fu.el +++ b/undo-fu.el @@ -194,7 +194,11 @@ Optional argument BODY runs with the message suffix." (defun undo-fu--was-undo-or-redo () "Return t when the last destructive action was undo or redo." (declare (important-return-value t)) - (not (null (undo-fu--backport-undo--last-change-was-undo-p buffer-undo-list)))) + (cond + ((undo-fu--backport-undo--last-change-was-undo-p buffer-undo-list) + t) + (t + nil))) ;; --------------------------------------------------------------------------- ;; Public Functions