From b9f3f199a8eceb625c4d4c39aef470de23dc5fc3 Mon Sep 17 00:00:00 2001 From: Goooler Date: Mon, 16 Mar 2026 11:11:28 +0800 Subject: [PATCH] Remove explicit sign https://github.com/saket/byte-size/blob/27733b4b92d755532bce659808defd33d8ba70d8/library/src/commonMain/kotlin/me/saket/bytesize/BinaryByteSize.kt#L80 --- io/src/main/kotlin/com/jakewharton/diffuse/io/Size.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/io/src/main/kotlin/com/jakewharton/diffuse/io/Size.kt b/io/src/main/kotlin/com/jakewharton/diffuse/io/Size.kt index 7234a8d8..7b9db29b 100644 --- a/io/src/main/kotlin/com/jakewharton/diffuse/io/Size.kt +++ b/io/src/main/kotlin/com/jakewharton/diffuse/io/Size.kt @@ -5,12 +5,7 @@ import me.saket.bytesize.binaryBytes @JvmInline value class Size(val bytes: Long) : Comparable { - override fun toString(): String = - if (bytes >= 0) { - bytes.binaryBytes.toString() - } else { - "-" + (-bytes).binaryBytes.toString() - } + override fun toString(): String = bytes.binaryBytes.toString() override fun compareTo(other: Size) = bytes.compareTo(other.bytes)