From d9fd560a5b028641c8dfbb12e3828fca57f12a7f Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 19 Dec 2024 15:49:39 -0500 Subject: [PATCH] ProgressWriter: Removes character length checks In case using emojis is your thing. --- project/src/utils/ProgressWriter.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/project/src/utils/ProgressWriter.ts b/project/src/utils/ProgressWriter.ts index 6d1a9674..67205a98 100644 --- a/project/src/utils/ProgressWriter.ts +++ b/project/src/utils/ProgressWriter.ts @@ -12,9 +12,6 @@ export class ProgressWriter { if (total <= 0) { throw new Error("Total must be a positive number."); } - if ((barFillChar && barFillChar.length !== 1) || (barEmptyChar && barEmptyChar.length !== 1)) { - throw new Error("Bar character values must be a single character."); - } this.total = total; this.maxBarLength = maxBarLength;