refactor: lint

This commit is contained in:
Pavel Korytov 2022-07-29 21:42:31 +03:00
parent 5a892399ac
commit 2840eb23a2

View file

@ -2267,7 +2267,9 @@ are as follows:
(cl-defmethod transient-infix-read ((obj org-journal-tags--transient-switches))
"Cycle through the mutually exclusive switches.
The last value is \"don't use any of these switches\"."
OBJ is an instance of the `org-journal-tags--transient-switches'
class."
(let ((choices (oref obj choices)))
(let ((idx (cl-position (oref obj value) choices)))
(nth (% (1+ idx) (length choices)) choices))))