summaryrefslogtreecommitdiff
path: root/std/path/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/path/utils.ts')
-rw-r--r--std/path/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/path/utils.ts b/std/path/utils.ts
index 7a4cd7299..9911f5347 100644
--- a/std/path/utils.ts
+++ b/std/path/utils.ts
@@ -49,7 +49,7 @@ export function normalizeString(
let code: number;
for (let i = 0, len = path.length; i <= len; ++i) {
if (i < len) code = path.charCodeAt(i);
- else if (isPathSeparator(code!)) break;
+ else if (isPathSeparator(code)) break;
else code = CHAR_FORWARD_SLASH;
if (isPathSeparator(code)) {