Backport commit c6ba8100e from Emacs

* lisp/org-id.el (org-id-time-to-b36):
Remove unnecessary ‘or’.

Fix minor Org timestamp inefficiencies
c6ba8100ea1db4616d3fe8485430b29143bc3d2e
Paul Eggert
Mon Aug 5 17:38:15 2019 -0700
This commit is contained in:
Paul Eggert 2019-08-05 17:37:47 -07:00 committed by Kyle Meyer
parent 08c7bbbf71
commit 218e694964
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ using `org-id-decode'."
(setq time (or time (org-current-time-as-list)))
(concat (org-id-int-to-b36 (nth 0 time) 4)
(org-id-int-to-b36 (nth 1 time) 4)
(org-id-int-to-b36 (or (nth 2 time) 0) 4)))
(org-id-int-to-b36 (nth 2 time) 4)))
(defun org-id-decode (id)
"Split ID into the prefix and the time value that was used to create it.