Browse Source

Merge pull request #366 from yogthos/patch-2

code cleanup
michaelhixson 12 years ago
parent
commit
464311a204
1 changed files with 1 additions and 1 deletions
  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
   "Fetch the full list of Fortunes from the database, sort them by the fortune
    message text, and then return the results."
    message text, and then return the results."
   (let [fortunes (conj (get-all-fortunes) {:id 0 :message "Additional fortune added at request time."} )]
   (let [fortunes (conj (get-all-fortunes) {:id 0 :message "Additional fortune added at request time."} )]
-    (sort-by #(:message %) fortunes)))
+    (sort-by :message fortunes)))