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"
[resource-path]
(if (re-find #"^http" resource-path)
resource-path
(str "https://200ok.ch" resource-path)))
(if resource-path
(if (re-find #"^http" resource-path)
resource-path
(str "https://200ok.ch" 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