Преглед изворни кода

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)))