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

code cleanup

removed unnecessary wrapper
Dmitri Sotnikov преди 12 години
родител
ревизия
26e9e38397
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      luminus/hello/src/hello/models/db.clj

+ 1 - 1
luminus/hello/src/hello/models/db.clj

@@ -69,4 +69,4 @@
   "Fetch the full list of Fortunes from the database, sort them by the fortune
    message text, and then return the results."
   (let [fortunes (conj (get-all-fortunes) {:id 0 :message "Additional fortune added at request time."} )]
-    (sort-by #(:message %) fortunes)))
+    (sort-by :message fortunes)))