Skip to content

Commit 422b6d2

Browse files
committed
Remove Buffer option entirely
1 parent 7c86084 commit 422b6d2

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/lib/revlogParser.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import { Dbc, CanDecoder, BoundSignal, Message, Signal } from './revDBC.js';
77
export async function parseREVLOG(
88
input: string | Buffer | Readable,
99
outputTarget?: string | Writable
10-
): Promise<Buffer | void> {
10+
): Promise<void> {
1111
// --- Stream Setup ---
1212
let readStream: Readable;
1313
let writeStream: Writable | null = null;
14-
const outputChunks: Buffer[] = [];
1514

1615
// Handle Input
1716
if (input instanceof Readable) {
@@ -36,8 +35,6 @@ export async function parseREVLOG(
3635
const writeOut = (data: Buffer) => {
3736
if (writeStream) {
3837
writeStream.write(data);
39-
} else {
40-
outputChunks.push(data);
4138
}
4239
};
4340
// --- Constants ---
@@ -474,7 +471,4 @@ export async function parseREVLOG(
474471
});
475472
return; // Returns void if writing to a file
476473
}
477-
478-
// Fallback for smaller buffers where no outputFilename was provided
479-
return Buffer.concat(outputChunks);
480474
}

0 commit comments

Comments
 (0)