refactor: no need inline

This commit is contained in:
2023-11-15 04:51:22 +08:00
parent ac5ffce707
commit c585e2003c

View File

@@ -27,8 +27,8 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.TextUnit
import androidx.compose.ui.unit.isSpecified
internal inline fun Dp.orElse() = if (isSpecified) this else null
internal fun Dp.orElse() = if (isSpecified) this else null
internal inline fun Color.orElse() = if (isSpecified) this else null
internal fun Color.orElse() = if (isSpecified) this else null
internal inline fun TextUnit.orElse() = if (isSpecified) this else null
internal fun TextUnit.orElse() = if (isSpecified) this else null