mirror of
https://github.com/metosin/reitit.git
synced 2026-01-11 17:39:50 +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.
|
||||
(defn source-str [[target _ file line]]
|
||||
(try
|
||||
(if (and (not= 1 line))
|
||||
(if (not= 1 line)
|
||||
(let [file-name (str/replace file #"(.*?)\.\S[^\.]+" "$1")
|
||||
target-name (name target)
|
||||
ns (str (subs target-name 0 (or (str/index-of target-name (str file-name "$")) 0)) file-name)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue