fix: simplify domainType

This commit is contained in:
w3nder
2025-04-22 21:30:39 -03:00
parent 131aeadd45
commit f4dc41eda1

View File

@@ -149,10 +149,7 @@ export const decodeDecompressedBinaryNode = (
const readAdJid = () => {
const rawDomainType = readByte()
const domainType = typeof rawDomainType === 'number'
? rawDomainType
: Number(rawDomainType)
const domainType = Number(rawDomainType)
const device = readByte()
const user = readString(readByte())