Quellcode durchsuchen

Minor cleanups to load-config.

Brit Butler vor 12 Jahren
Ursprung
Commit
794f08a7be
1 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen
  1. 3 4
      src/config.lisp

+ 3 - 4
src/config.lisp

@@ -51,9 +51,8 @@ are in the plugins folder in coleslaw's source directory."
51 51
                                  :key #'(lambda (str) (cl-fad:pathname-as-directory str))
52 52
                                  :test #'equal)))
53 53
             (if section
54
-                (progn 
55
-                  (setf *config* (apply #'make-instance 'blog (cdr section)))
56
-                  (setf (slot-value *config* 'repo) config-key))
57
-                (error 'unknown-config-section-error 
54
+                (setf *config* (apply #'make-instance 'blog (cdr section))
55
+                      (repo *config*) config-key)
56
+                (error 'unknown-config-section-error
58 57
                        :text (format nil "In ~A: No such key: '~A'." in config-key)))))
59 58
       (load-plugins (plugins *config*)))))