Sfoglia il codice sorgente

Remove calls to vec that were not needed

This matches the changes to the compojure test.
Keith R. Gustafson 11 anni fa
parent
commit
dc1dce865c
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      luminus/hello/src/hello/models/db.clj

+ 2 - 4
luminus/hello/src/hello/models/db.clj

@@ -28,19 +28,17 @@
 
 ; Run the specified number of queries, return the results
 (defn run-queries [queries]
-  (vec ; Return as a vector
    (flatten ; Make it a list of maps
     (take
      queries ; Number of queries to run
-     (repeatedly get-world)))))
+     (repeatedly get-world))))
 
 ; Run the specified number of queries, return the results
 (defn run-queries-raw [queries]
-  (vec ; Return as a vector
    (flatten ; Make it a list of maps
     (take
      queries ; Number of queries to run
-     (repeatedly get-world-raw)))))
+     (repeatedly get-world-raw))))
 
 (defn get-query-count [queries]
   "Parse provided string value of query count, clamping values to between 1 and 500."