From c2986891f6aac87cec98232735945af756e6643f Mon Sep 17 00:00:00 2001 From: Yusuke Sakurai Date: Fri, 7 Feb 2020 16:23:38 +0900 Subject: remove non-null assertion operator from std (part1) (#3900) --- std/path/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/path/utils.ts') 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)) { -- cgit v1.2.3