Skip to content

Commit

Permalink
Fix array
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoRBaquero authored Mar 17, 2023
1 parent 7465016 commit 38e53f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/shim/src/utils/readlines.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default async function readLines(filename, offsetBytes = null, readSize =
// was not finished and was split across chunks so we need to adjust the offset to not
// include the last line and pop it from the lines array
if (items[items.length - 1] !== "") {
adjustBytes = Buffer.byteLength([items[items.length - 1]]);
adjustBytes = Buffer.byteLength(items[items.length - 1]);
lines.pop(); // pop unfinished item
}

Expand Down

0 comments on commit 38e53f8

Please sign in to comment.