Use OR to guard instead of IF.

This commit is contained in:
Brit Butler 2014-03-22 18:08:47 -04:00
parent 5a32bb19cf
commit 387e47bde6

View file

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