mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
✨ Remove redundant str call in format-number
format-precision already returns a string, so wrapping its result in an additional (str ...) call was unnecessary.
This commit is contained in:
parent
69e25a4998
commit
da8e44147c
@ -1117,8 +1117,7 @@
|
||||
([value {:keys [precision] :or {precision 2}}]
|
||||
(let [value (if (string? value) (parse-double value) value)]
|
||||
(when (num? value)
|
||||
(let [value (format-precision value precision)]
|
||||
(str value))))))
|
||||
(format-precision value precision)))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Util protocols
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user