fix: CI tests and lint warnings

This commit is contained in:
Tienson Qin
2022-02-22 15:40:04 +08:00
committed by Andelf
parent c678fa15e6
commit db7d1cde09
2 changed files with 3 additions and 1 deletions

View File

@@ -263,4 +263,6 @@
(defn link?
[format link]
(when (string? link)
(= "Link" (ffirst (inline->edn link (default-config format))))))
(let [[type link] (first (inline->edn link (default-config format)))]
(and (= "Link" type)
(not (contains? #{"Page_ref" "Block_ref"} (first (:url link))))))))