🐛 Fix trailing comma in matrix->str and remove duplicate dispatch

matrix->str was producing malformed strings like '1,0,0,1,0,0,'
instead of '1,0,0,1,0,0', breaking string serialization of matrix
values used in transit and print-dup handlers.

Also remove the first pp/simple-dispatch registration for Matrix at
line 362 which was dead code shadowed by the identical registration
further down in the file.

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Andrey Antukh 2026-04-14 19:36:52 +00:00
parent a7e362dbfe
commit 3d4c914daa

View File

@ -101,7 +101,7 @@
(dm/get-prop o :c) ","
(dm/get-prop o :d) ","
(dm/get-prop o :e) ","
(dm/get-prop o :f) ",")
(dm/get-prop o :f))
o))
(defn- matrix->json
@ -359,8 +359,6 @@
(th-eq m1e m2e)
(th-eq m1f m2f))))
(defmethod pp/simple-dispatch Matrix [obj] (pr obj))
(defn transform-in [pt mtx]
(if (and (some? pt) (some? mtx))
(-> (matrix)