Remove type hint and add assertion
This commit is contained in:
@@ -55,7 +55,8 @@
|
|||||||
(:object arg)
|
(:object arg)
|
||||||
(NinePatch. (:object arg))
|
(NinePatch. (:object arg))
|
||||||
(map? arg)
|
(map? arg)
|
||||||
(let [{:keys [^TextureRegion region left right top bottom]} arg]
|
(let [{:keys [region left right top bottom]} arg]
|
||||||
|
(assert (and region left right top bottom))
|
||||||
(NinePatch. region left right top bottom))
|
(NinePatch. region left right top bottom))
|
||||||
:else
|
:else
|
||||||
arg)))
|
arg)))
|
||||||
|
|||||||
Reference in New Issue
Block a user