using zerop instead of (= 0
This commit is contained in:
parent
d7ffd1b7d7
commit
1e1c64b245
1 changed files with 4 additions and 4 deletions
|
@ -40,10 +40,10 @@
|
|||
(defun slugify (string)
|
||||
"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)
|
||||
slugified)))
|
||||
(substitute-if #\- #'unicode-space-p string))))
|
||||
(if (zerop (length slugified))
|
||||
(error "Post title '~a' does not contain characters suitable for a slug!" string
|
||||
slugified)))
|
||||
|
||||
;; Content Types
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue