Skip to content

Commit

Permalink
Merge pull request #19 from raszi/fix_doall
Browse files Browse the repository at this point in the history
fix(bundler): move sequence realization to with-open
  • Loading branch information
thenonameguy committed Feb 22, 2016
2 parents 200c440 + 0bd935c commit eecdd3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hu/ssh/github_changelog/dependencies/bundler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
(->> (line-seq reader)
(drop-while #(not= % " specs:"))
(drop 1)
(take-while seq)
doall))
(take-while seq)))

(defn- parse-spec [spec]
{:name (second spec) :version (nth spec 2)})
Expand All @@ -20,4 +19,4 @@

(defn parse [file]
(with-open [reader (io/reader file)]
(parse-specs (get-specs reader))))
(doall (parse-specs (get-specs reader)))))

0 comments on commit eecdd3a

Please sign in to comment.