mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 10:11:52 +03:00
update comments
This commit is contained in:
parent
567ae5ac60
commit
4f9aee1f7a
@ -57,7 +57,7 @@ class CompatUtil(private val sdkVersion: Int) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return unwrapped value if valid or result of [block]
|
||||
* @return unwrapped value or result of [block]
|
||||
*/
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
fun otherwise(block: () -> T): T =
|
||||
@ -72,7 +72,7 @@ class CompatUtil(private val sdkVersion: Int) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return unwrapped value if valid or [value]
|
||||
* @return unwrapped value or [value]
|
||||
*/
|
||||
fun otherwise(value: T): T = otherwise { value }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user