Remove cruft around SignalAccountRecord.

This commit is contained in:
Greyson Parrelli
2024-11-11 11:01:34 -05:00
parent 5e8318d63f
commit ae37c4019f
30 changed files with 536 additions and 1523 deletions

View File

@@ -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.
*/