mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 14:00:37 +00:00
🔥 Remove debug prints from shape validation
Drop the println in the :validate-shapes change and the prn calls in the main instance check of the file validation. AI-assisted-by: claude-opus-5-5
This commit is contained in:
parent
31493b1525
commit
911dea8a4f
@ -1133,11 +1133,6 @@
|
||||
(defmethod process-change :validate-shapes
|
||||
[data {:keys [page-id shape-ids context]} libraries]
|
||||
(when libraries
|
||||
(println "Validating shapes: \n"
|
||||
" file-id:" (str (:id data)) "\n"
|
||||
" page-id:" (str page-id) "\n"
|
||||
" shape-ids:" (str shape-ids) "\n"
|
||||
" context:" context)
|
||||
(let [file {:id (:id data) :data data}
|
||||
errors (reduce (fn [acc shape-id]
|
||||
(if-let [page (ctpl/get-page data page-id)]
|
||||
|
||||
@ -279,8 +279,6 @@
|
||||
"Shape expected to be main instance"
|
||||
shape file page))
|
||||
(when-not (= (:component-file shape) (:id file))
|
||||
(prn "shape" (:id shape) (:name shape) (:component-file shape))
|
||||
(prn "file" (:id file) (:name file))
|
||||
(report-error :component-main-external
|
||||
"Main instance should refer to a component in the same file"
|
||||
shape file page))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user