Просмотр исходного кода

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
Paul Eggert 6 лет назад
Родитель
Сommit
218e694964
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lisp/org-id.el

+ 1 - 1
lisp/org-id.el

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