Kaynağa Gözat

Use OR to guard instead of IF.

Brit Butler 11 yıl önce
ebeveyn
işleme
387e47bde6
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 3
      src/posts.lisp

+ 1 - 3
src/posts.lisp

@@ -13,9 +13,7 @@
13 13
       (setf (content-slug object) (slugify title)
14 14
             format (make-keyword (string-upcase format))
15 15
             text (render-content text format)
16
-            author (if author
17
-                       author
18
-                       (author *config*)))))
16
+            author (or author (author *config*)))))
19 17
 
20 18
 (defmethod render ((object post) &key prev next)
21 19
   (funcall (theme-fn 'post) (list :config *config*