Skip to content

Commit a36b7b5

Browse files
authored
1 parent 154b5d1 commit a36b7b5

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • io/src/main/kotlin/com/jakewharton/diffuse/io

io/src/main/kotlin/com/jakewharton/diffuse/io/Size.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ import me.saket.bytesize.binaryBytes
55

66
@JvmInline
77
value class Size(val bytes: Long) : Comparable<Size> {
8-
override fun toString(): String =
9-
if (bytes >= 0) {
10-
bytes.binaryBytes.toString()
11-
} else {
12-
"-" + (-bytes).binaryBytes.toString()
13-
}
8+
override fun toString(): String = bytes.binaryBytes.toString()
149

1510
override fun compareTo(other: Size) = bytes.compareTo(other.bytes)
1611

0 commit comments

Comments
 (0)