Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Commit 6b5d665

Browse files
committed
Check if the value in the config is a string before checking if it's empty
1 parent d884c20 commit 6b5d665

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/doplarr/config.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
(let [config (s/select-one
6060
[(s/submap valid-keys)
6161
(s/transformed [s/MAP-VALS nil?] (constantly s/NONE))
62-
(s/transformed [s/MAP-VALS empty? (constantly s/NONE)])
62+
(s/transformed [s/MAP-VALS #(and (string? %) (empty? %))] (constantly s/NONE))
6363
(s/transformed [s/ALL #(= "url" (name (first %)))] #(vector (first %) (trimr* (second %) \/)))]
6464
env)]
6565
(if (spec/valid? ::specs/config config)

0 commit comments

Comments
 (0)