Skip to content

Commit 0eed1ab

Browse files
committed
Expand ~ in classpath entries *before* filtering for existence
Otherwise, `~` would be interpreted literally and the existence check would always remove such entries.
1 parent aa3fe7c commit 0eed1ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nvd/task/check.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
package-lock.json). Thus, skip directories in general as well as non-existing files."
5353
[classpath-string]
5454
(into []
55-
(comp (remove (fn [^String s]
55+
(comp (map absolute-path)
56+
(remove (fn [^String s]
5657
(let [file (io/file s)]
5758
(or (.isDirectory file)
58-
(not (.exists file))))))
59-
(map absolute-path))
59+
(not (.exists file)))))))
6060
(s/split classpath-string classpath-separator-re)))
6161

6262
(defn- scan-and-analyze [project]

0 commit comments

Comments
 (0)