瀏覽代碼

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 5 年之前
父節點
當前提交
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)))
   (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.