mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
🔥 Remove unnecessary do
on file validation ns
This commit is contained in:
parent
f9d63dba00
commit
c58302ffc4
1 changed files with 52 additions and 53 deletions
|
@ -367,7 +367,6 @@
|
||||||
[shape-id file page libraries & {:keys [context] :or {context :not-component}}]
|
[shape-id file page libraries & {:keys [context] :or {context :not-component}}]
|
||||||
(let [shape (ctst/get-shape page shape-id)]
|
(let [shape (ctst/get-shape page shape-id)]
|
||||||
(when (some? shape)
|
(when (some? shape)
|
||||||
(do
|
|
||||||
(check-geometry shape file page)
|
(check-geometry shape file page)
|
||||||
(check-parent-children shape file page)
|
(check-parent-children shape file page)
|
||||||
(check-frame shape file page)
|
(check-frame shape file page)
|
||||||
|
@ -424,7 +423,7 @@
|
||||||
(report-error :not-component-not-allowed
|
(report-error :not-component-not-allowed
|
||||||
"Not compoments are not allowed inside a main"
|
"Not compoments are not allowed inside a main"
|
||||||
shape file page)
|
shape file page)
|
||||||
(check-shape-not-component shape file page libraries)))))))))
|
(check-shape-not-component shape file page libraries))))))))
|
||||||
|
|
||||||
(defn- check-component
|
(defn- check-component
|
||||||
"Validate semantic coherence of a component. Report all errors found."
|
"Validate semantic coherence of a component. Report all errors found."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue