Edoardo Luppi
08/05/2023, 4:41 PMtmp
variable in the middle?
val otherBuffer = if (otherBytes is Buffer) {
otherBytes
} else {
Buffer.from(otherBytes)
}
Is translated to
var tmp;
if (otherBytes instanceof Buffer) {
tmp = otherBytes;
} else {
tmp = Buffer.from(otherBytes);
}
var otherBuffer = tmp;
Why not assign directly to otherBuffer
?jw
08/05/2023, 5:38 PMjw
08/05/2023, 5:39 PMEdoardo Luppi
08/05/2023, 5:46 PMAyfri
08/05/2023, 6:09 PMjw
08/05/2023, 7:30 PMjw
08/05/2023, 7:31 PMjw
08/05/2023, 7:31 PMEdoardo Luppi
08/05/2023, 7:33 PMHaroon Iftikhar
08/06/2023, 1:41 AMArtem Kobzar
08/07/2023, 10:20 AMEdoardo Luppi
08/07/2023, 10:35 AM