Commit e912a932 authored by Alain M. Lafon's avatar Alain M. Lafon

fix: Guard function against nil input

parent 99415876
Pipeline #5134 passed with stage
in 1 minute and 47 seconds
......@@ -15,6 +15,7 @@
(defn fully-qualifying-url
"Given a `resource-path`, it appends the canonical URL for the domain"
(if (re-find #"^http" resource-path)
(str "" resource-path)))
(if resource-path
(if (re-find #"^http" resource-path)
(str "" resource-path))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment