Skip to content

Commit

Permalink
fix: remove redundant let
Browse files Browse the repository at this point in the history
  • Loading branch information
thezjy authored and tiensonqin committed Mar 15, 2021
1 parent 915218f commit e6dda26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/frontend/handler/route.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
(str (subs content 0 48) "...")
content))
"Page no longer exists!!")
(let [page name
page (db/pull [:page/name (string/lower-case page)])]
(let [page (db/pull [:page/name (string/lower-case name)])]
(or (:page/original-name page)
(:page/name page)
"Logseq"))))
Expand Down

0 comments on commit e6dda26

Please sign in to comment.