org-cycle-hide-drawers: Remove an unnecessary state check

* lisp/org.el (org-cycle-hide-drawers): Don't check whether STATE is
`contents' within the `when' body because the `when' condition will
not pass in this case.
This commit is contained in:
Kyle Meyer 2017-07-18 13:24:32 -04:00
parent 404ac42ee5
commit 8ed27480aa
1 changed files with 1 additions and 1 deletions

View File

@ -7322,7 +7322,7 @@ specifying which drawers should not be hidden."
(when (and (derived-mode-p 'org-mode)
(not (memq state '(overview folded contents))))
(save-excursion
(let* ((globalp (memq state '(contents all)))
(let* ((globalp (eq state 'all))
(beg (if globalp (point-min) (point)))
(end (if globalp (point-max)
(if (eq state 'children)