fix: invalid throws and remove unused values

Caught by updating to latest kondo
This commit is contained in:
Gabriel Horner
2024-10-31 14:12:09 -04:00
parent 92cc1ce38c
commit 0036a5d9de
17 changed files with 21 additions and 23 deletions

View File

@@ -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 %)