Skip to content

Commit

Permalink
refactor: replace if with unless
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuco1 committed Feb 4, 2021
1 parent 76296b7 commit 55cafb5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions org-timeline.el
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,10 @@ Return new copy of STRING."
"Insert graphical timeline into agenda buffer."
(unless (buffer-narrowed-p)
(goto-char (point-min))
(if org-timeline-prepend
nil
(while (and (eq (get-text-property (line-beginning-position) 'org-agenda-type) 'agenda)
(not (eobp)))
(forward-line)))
(unless org-timeline-prepend
(while (and (eq (get-text-property (line-beginning-position) 'org-agenda-type) 'agenda)
(not (eobp)))
(forward-line)))
(forward-line)
(let ((inhibit-read-only t))
(insert (org-timeline--generate-timeline))
Expand Down

0 comments on commit 55cafb5

Please sign in to comment.