Small cleanup

This commit is contained in:
Jobobby04
2021-02-24 16:16:47 -05:00
parent 5a67d8169d
commit 079ca1d0b3
3 changed files with 64 additions and 58 deletions
+2 -2
View File
@@ -6,6 +6,6 @@ fun Float.floor(): Int = floor(this).toInt()
fun Double.floor(): Int = floor(this).toInt()
fun Int.nullIfZero() = if (this == 0) null else this
fun Int.nullIfZero() = takeUnless { it == 0 }
fun Long.nullIfZero() = if (this == 0L) null else this
fun Long.nullIfZero() = takeUnless { it == 0L }