Skip to content

Commit

Permalink
♻️ Update StrictlyNegativeInt.Companion.create(Number) (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
LVMVRQUXL committed Feb 21, 2024
1 parent cf16bde commit 3af1275
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public value class StrictlyNegativeInt private constructor(
@JvmSynthetic
public fun create(number: Number): StrictlyNegativeInt {
val result: StrictlyNegativeInt? = createOrNull(number)
return requireNotNull(result) { number.shouldBeStrictlyNegative() }
return requireNotNull(result, number::shouldBeStrictlyNegative)
}

/**
Expand Down

0 comments on commit 3af1275

Please sign in to comment.