Merge "Suppress inline warning" into udc-dev
This commit is contained in:
@@ -26,4 +26,5 @@ inline fun <T : Any, R> transform(value: T?, block: (T) -> R): R? = value?.let(b
|
||||
/**
|
||||
* Assists type-checking to unpack a Java Optional into T?
|
||||
*/
|
||||
@Suppress("NOTHING_TO_INLINE")
|
||||
inline fun <T> Optional<T>.getOrNull(): T? = orElse(null)
|
||||
|
||||
Reference in New Issue
Block a user