Skip to content

Commit

Permalink
fix: json stringfy some useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 committed Jul 15, 2024
1 parent 55441e4 commit 67e853e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/utils/src/build/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { dirname, join } from 'path';
import { Package } from 'src/common';
import { Transform } from 'stream';

const maxFileSize = 1024 * 1024 * 400; // maximum length of each file, measured in bytes, with 400MB as an example.
const maxFileSize = 1024 * 1024 * 400; // Maximum length of each file is 400MB, measured in bytes.

export function stringify<T, P = T extends undefined ? undefined : string>(
json: T,
Expand Down Expand Up @@ -44,7 +44,6 @@ export function stringify<T, P = T extends undefined ? undefined : string>(
});

stream
// .pipe(split2(/\\n/))
.pipe(batchProcessor)
.on('data', (line: string | any[]) => {
if (currentLength + line.length > maxFileSize) {
Expand Down

0 comments on commit 67e853e

Please sign in to comment.