mirror of
https://github.com/metosin/reitit.git
synced 2026-01-23 22:59:02 +00:00
refactor: Remove unneeded and
This commit is contained in:
parent
579eb28a50
commit
3191d9ee59
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@
|
||||||
;; TODO: this is hack, but seems to work and is safe.
|
;; TODO: this is hack, but seems to work and is safe.
|
||||||
(defn source-str [[target _ file line]]
|
(defn source-str [[target _ file line]]
|
||||||
(try
|
(try
|
||||||
(if (and (not= 1 line))
|
(if (not= 1 line)
|
||||||
(let [file-name (str/replace file #"(.*?)\.\S[^\.]+" "$1")
|
(let [file-name (str/replace file #"(.*?)\.\S[^\.]+" "$1")
|
||||||
target-name (name target)
|
target-name (name target)
|
||||||
ns (str (subs target-name 0 (or (str/index-of target-name (str file-name "$")) 0)) file-name)]
|
ns (str (subs target-name 0 (or (str/index-of target-name (str file-name "$")) 0)) file-name)]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue