Use OR to guard instead of IF.
This commit is contained in:
parent
5a32bb19cf
commit
387e47bde6
1 changed files with 1 additions and 3 deletions
|
@ -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*
|
||||
|
|
Loading…
Add table
Reference in a new issue