Skip to content

Commit 172039f

Browse files
Fix invalid stale-check
The neg? check always evaluated to false because the arguments of the time difference calculation were interchanged.
1 parent bebdee6 commit 172039f

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
@@ -38,7 +38,7 @@
3838
(defn- stale-cache? []
3939
(or (empty? @artifacts)
4040
(if-let [last-modified (some-> artifacts meta :last-modified .getTime)]
41-
(neg? (- millis-per-day (- last-modified (.getTime (java.util.Date.)))))
41+
(neg? (- millis-per-day (- (.getTime (java.util.Date.)) last-modified)))
4242
true)))
4343

4444
(defn- get-mvn-artifacts!

0 commit comments

Comments
 (0)