Skip to content

Commit 7f0c978

Browse files
committed
rebase clean up
1 parent ec1b6bf commit 7f0c978

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

partiql-types/src/main/kotlin/org/partiql/value/util/NumberExtensions.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,13 @@ private val CONVERTERS = mapOf<Class<*>, (Number) -> Number>(
109109
)
110110

111111
internal fun Number.isZero() = when (this) {
112-
// using compareTo instead of equals for BigDecimal because equality also checks same scale
113112
is Int -> this == 0
114113
is Long -> this == 0L
115114
is Float -> this == 0.0f || this == -0.0f
116115
is Double -> this == 0.0 || this == -0.0
117-
<<<<<<< HEAD
118-
is BigDecimal -> BigDecimal.ZERO.compareTo(this) == 0
119-
is BigInteger -> BigInteger.ZERO.compareTo(this) == 0
120-
else -> throw IllegalStateException("$this (${this.javaClass.simpleName})")
121-
=======
122116
is BigDecimal -> this.signum() == 0
123117
is BigInteger -> this.signum() == 0
124118
else -> throw IllegalStateException("$this")
125-
>>>>>>> d0cb6b1b (fix comparator and substring func resolution)
126119
}
127120

128121
@Suppress("UNCHECKED_CAST")

0 commit comments

Comments
 (0)