0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 09:08:31 -05:00

🐛 Fix linter issues

This commit is contained in:
alonso.torres 2022-02-28 12:29:52 +01:00 committed by Alonso Torres
parent a73a393e26
commit 3f804339b9
2 changed files with 2 additions and 3 deletions

View file

@ -311,7 +311,7 @@
clean-attrs (d/without-nils attrs)]
(cond-> shape
(not (empty? clean-attrs))
(d/not-empty? clean-attrs)
(assoc :fills [clean-attrs]))))
;; Add fills to shapes
@ -341,7 +341,7 @@
clean-attrs (d/without-nils attrs)]
(cond-> shape
(not (empty? clean-attrs))
(d/not-empty? clean-attrs)
(assoc :strokes [clean-attrs]))))
;; Add strokes to shapes

View file

@ -323,7 +323,6 @@
(> (count (:fills shape)) 1)
(some :fill-color-gradient (:fills shape)))
one-fill? (= (count (:fills shape)) 1)
no-fills? (= (count (:fills shape)) 0)
last-stroke? (= position (- (count (:strokes shape)) 1))
props (-> (obj/get child "props")