using zerop instead of (= 0

This commit is contained in:
lukasepple 2014-12-10 15:07:09 +01:00
parent d7ffd1b7d7
commit 1e1c64b245

View file

@ -41,8 +41,8 @@
"Return a version of STRING suitable for use as a URL."
(let ((slugified (remove-if-not #'slug-char-p
(substitute-if #\- #'unicode-space-p string))))
(if (= 0 (length slugified))
(error "Post title '~a' does not contain characters suitable for a slug!" string)
(if (zerop (length slugified))
(error "Post title '~a' does not contain characters suitable for a slug!" string
slugified)))
;; Content Types