Update plugins/fs/guest-js/index.ts

Co-authored-by: Fabian-Lars <github@fabianlars.de>
pull/1962/head
Amr Bashir 8 months ago committed by GitHub
parent 2b0fcc79cc
commit 1511204a26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -827,7 +827,7 @@ async function readTextFileLines(
// Rust side will never return an empty array for this command and
// ensure there is at least one elements there.
//
// This is an optimization to include wether we finished iteration or not (1 or 0)
// This is an optimization to include whether we finished iteration or not (1 or 0)
// at the end of returned array to avoid serialization overhead of separate values.
const done = bytes[bytes.byteLength - 1] === 1

Loading…
Cancel
Save