use a more descriptive arg name
This commit is contained in:
parent
7b240580ea
commit
152f72a2bb
|
@ -199,8 +199,8 @@
|
||||||
keywordize? arg is true, then returned resource type names will be turned into a
|
keywordize? arg is true, then returned resource type names will be turned into a
|
||||||
\"kebab case\" keyword (as opposed to a camelcase string which is the default). if
|
\"kebab case\" keyword (as opposed to a camelcase string which is the default). if
|
||||||
the URL cannot be parsed, returns nil"
|
the URL cannot be parsed, returns nil"
|
||||||
[resource-url & [keywordize?]]
|
[relative-url & [keywordize?]]
|
||||||
(let [parts (-> (strip-query-params resource-url)
|
(let [parts (-> (strip-query-params relative-url)
|
||||||
(str/split #"/"))]
|
(str/split #"/"))]
|
||||||
(cond
|
(cond
|
||||||
(= 2 (count parts))
|
(= 2 (count parts))
|
||||||
|
|
Reference in a new issue