summaryrefslogtreecommitdiff
path: root/strings/pad.ts
diff options
context:
space:
mode:
Diffstat (limited to 'strings/pad.ts')
-rw-r--r--strings/pad.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/pad.ts b/strings/pad.ts
index 3c5084da2..267839a39 100644
--- a/strings/pad.ts
+++ b/strings/pad.ts
@@ -60,7 +60,7 @@ export function pad(
out = out.padEnd(strLen, opts.char);
}
} else if (opts.strict && outL > strLen) {
- let addChar = opts.strictChar ? opts.strictChar : "";
+ const addChar = opts.strictChar ? opts.strictChar : "";
if (opts.strictSide === "left") {
let toDrop = outL - strLen;
if (opts.strictChar) {