Skip to content

Commit 2fababe

Browse files
paulrdbbatsov
authored andcommitted
keep map of artifacts sorted after reading back from disk
1 parent 08580da commit 2fababe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/refactor_nrepl/artifacts.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
;; structure here is {"prismatic/schem" ["0.1.1" "0.2.0" ...]}
2626
(defonce artifacts (atom (if (.exists (io/as-file artifacts-file))
27-
(-> artifacts-file slurp read-string)
27+
(->> artifacts-file slurp read-string (into (sorted-map)))
2828
{})
2929
:meta {:last-modified
3030
(get-last-modified-from-file artifacts-file)}))

0 commit comments

Comments
 (0)