mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 04:06:14 +00:00
Update libsignal-client to 0.14.0
This commit is contained in:
committed by
Cody Henthorne
parent
749bbf428d
commit
057231b9c3
@@ -0,0 +1,11 @@
|
||||
package org.signal.core.util
|
||||
|
||||
import java.util.Optional
|
||||
|
||||
fun <E> Optional<E>.or(other: Optional<E>): Optional<E> {
|
||||
return if (this.isPresent) {
|
||||
this
|
||||
} else {
|
||||
other
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user