Skip to content

Commit 3c493d7

Browse files
Only less than 30 items uses tty report
1 parent 4a5159f commit 3c493d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default async function compress(context: Context): Promise<boolean> {
121121
}
122122
}
123123

124-
report = stdout.isTTY ? new TTYReport(context) : new Report(context);
124+
report = stdout.isTTY && toCompress.length < 30 ? new TTYReport(context) : new Report(context);
125125
let success: boolean = true;
126126
for (let iterator: number = 0; iterator < toCompress.length; iterator += COMPRESSION_CONCURRENCY) {
127127
if (iterator === 0) {

src/log/helpers/path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import { Context } from '../../validation/Condition';
1818

1919
const SPACE_AFTER_PATH = 2;
20-
const MAX_ALLOWED_PATH_LENGTH = 30;
20+
const MAX_ALLOWED_PATH_LENGTH = 50;
2121

2222
function allowedPathLength(path: string): number {
2323
return Math.min(path.length, MAX_ALLOWED_PATH_LENGTH) + SPACE_AFTER_PATH;

0 commit comments

Comments
 (0)