Collapse the two id emptiness tests into one and pin the reassembler wording

This commit is contained in:
2026-08-27 16:42:26 +02:00
parent cf315737b7
commit 3c6195a938
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ function receiptBody(pduObj: PduObject): string {
}
function receiptId(tlvId: ParamValue | undefined, receipt: Receipt | undefined): string | undefined {
return nonEmptyText(tlvId) ?? (receipt?.id === '' ? undefined : receipt?.id);
return nonEmptyText(tlvId) ?? nonEmptyText(receipt?.id);
}
function isMessageState(name: string | undefined): name is MessageState {