mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: remove redundant Buffer.from
This commit is contained in:
@@ -75,7 +75,7 @@ export const makeNoiseHandler = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = Buffer.from(NOISE_MODE)
|
const data = Buffer.from(NOISE_MODE)
|
||||||
let hash = Buffer.from(data.byteLength === 32 ? data : sha256(Buffer.from(data)))
|
let hash = Buffer.from(data.byteLength === 32 ? data : sha256(data))
|
||||||
let salt = hash
|
let salt = hash
|
||||||
let encKey = hash
|
let encKey = hash
|
||||||
let decKey = hash
|
let decKey = hash
|
||||||
|
|||||||
Reference in New Issue
Block a user