chore: remove redundant Buffer.from

This commit is contained in:
Adhiraj Singh
2022-09-28 10:40:18 +05:30
parent b0a7561726
commit f01f5df4f5

View File

@@ -75,7 +75,7 @@ export const makeNoiseHandler = (
}
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 encKey = hash
let decKey = hash