mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 23:25:05 +00:00
fix: invalid throws and remove unused values
Caught by updating to latest kondo
This commit is contained in:
@@ -518,7 +518,7 @@
|
||||
;; local
|
||||
(-> (p/let [content (invoke-exported-api "load_plugin_readme" url)
|
||||
content (parse-user-md-content content item)]
|
||||
(and (string/blank? (string/trim content)) (throw nil))
|
||||
(and (string/blank? (string/trim content)) (throw (js/Error. "blank readme content")))
|
||||
(state/set-state! :plugin/active-readme [content item])
|
||||
(shui/dialog-open! (fn [_] (display)) {:label "plugin-readme"}))
|
||||
(p/catch #(do (js/console.warn %)
|
||||
|
||||
Reference in New Issue
Block a user