Explorar o código

Use OR to guard instead of IF.

Brit Butler %!s(int64=11) %!d(string=hai) anos
pai
achega
387e47bde6
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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*