mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 12:08:34 +00:00
Remove cruft around SignalAccountRecord.
This commit is contained in:
@@ -32,6 +32,14 @@ fun ByteString?.isNullOrEmpty(): Boolean {
|
||||
return this == null || this.size == 0
|
||||
}
|
||||
|
||||
fun ByteString.nullIfEmpty(): ByteString? {
|
||||
return if (this.isEmpty()) {
|
||||
null
|
||||
} else {
|
||||
this
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the common pattern of attempting to decode a serialized proto and returning null if it fails to decode.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user