0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-12 15:50:42 -05:00

ProgressWriter: Removes character length checks

In case using emojis is your thing.
This commit is contained in:
Refringe 2024-12-19 15:49:39 -05:00
parent 4af5f2507a
commit d9fd560a5b
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -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;