diff options
Diffstat (limited to 'std/path')
-rw-r--r-- | std/path/glob.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/std/path/glob.ts b/std/path/glob.ts index a079f448f..8eb106b25 100644 --- a/std/path/glob.ts +++ b/std/path/glob.ts @@ -3,8 +3,6 @@ import { globrex } from "./globrex.ts"; import { join, normalize } from "./mod.ts"; import { assert } from "../testing/asserts.ts"; -const { DenoError, ErrorKind } = Deno; - export interface GlobOptions { extended?: boolean; globstar?: boolean; @@ -91,10 +89,7 @@ export function normalizeGlob( { globstar = false }: GlobOptions = {} ): string { if (!!glob.match(/\0/g)) { - throw new DenoError( - ErrorKind.InvalidPath, - `Glob contains invalid characters: "${glob}"` - ); + throw new Error(`Glob contains invalid characters: "${glob}"`); } if (!globstar) { return normalize(glob); |