Skip to content

Commit 0cd4ac5

Browse files
committed
more consistent naming convention
1 parent a460b75 commit 0cd4ac5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/clojure/cljs/js_deps.cljc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ case."
130130
(-requires [this] "A list of namespaces that this JavaScript requires.")
131131
(-source [this] [this opts] "The JavaScript source string."))
132132

133-
(defn get-file [libspec index]
134-
(or (:file libspec)
133+
(defn get-file [lib-spec index]
134+
(or (:file lib-spec)
135135
(some (fn [provide] (get-in index [provide :file]))
136-
(:provides libspec))))
136+
(:provides lib-spec))))
137137

138138
(defn build-index
139139
"Index a list of dependencies by namespace and file name. There can
@@ -168,7 +168,7 @@ case."
168168
(update-in index' [file] merge dep)
169169
(throw
170170
(Exception.
171-
(str "No :file provided for foreign libspec " (pr-str dep)))))
171+
(str "No :file provided for :foreign-libs spec " (pr-str dep)))))
172172
(assoc index' (:file dep) dep))))
173173
{} deps))
174174

0 commit comments

Comments
 (0)