Преглед на файлове

using zerop instead of (= 0

lukasepple преди 10 години
родител
ревизия
1e1c64b245
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/content.lisp

+ 4 - 4
src/content.lisp

@@ -40,10 +40,10 @@
40 40
 (defun slugify (string)
41 41
   "Return a version of STRING suitable for use as a URL."
42 42
   (let ((slugified (remove-if-not #'slug-char-p 
43
-								  (substitute-if #\- #'unicode-space-p string))))
44
-	(if (= 0 (length slugified))
45
-			(error "Post title '~a' does not contain characters suitable for a slug!" string)
46
-			slugified)))
43
+                                  (substitute-if #\- #'unicode-space-p string))))
44
+	(if (zerop (length slugified))
45
+            (error "Post title '~a' does not contain characters suitable for a slug!" string 
46
+            slugified)))
47 47
 
48 48
 ;; Content Types
49 49