diff options
Diffstat (limited to 'std/path/posix.ts')
-rw-r--r-- | std/path/posix.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/std/path/posix.ts b/std/path/posix.ts index 4377fd542..ba4cf7499 100644 --- a/std/path/posix.ts +++ b/std/path/posix.ts @@ -9,7 +9,7 @@ import { assertPath, normalizeString, isPosixPathSeparator, - _format + _format, } from "./utils.ts"; export const sep = "/"; @@ -205,8 +205,9 @@ export function dirname(path: string): string { } export function basename(path: string, ext = ""): string { - if (ext !== undefined && typeof ext !== "string") + if (ext !== undefined && typeof ext !== "string") { throw new TypeError('"ext" argument must be a string'); + } assertPath(path); let start = 0; |