summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-07-01 16:04:56 +0200
committerGitHub <noreply@github.com>2020-07-01 16:04:56 +0200
commit851344f2ed588c0aa5db4fa66b7326900fdf9b5d (patch)
tree77a69ff6796592a9cb5cd1d56256fdeef89fd521 /std
parent7858ebd493afe15b4b583b0218c27e166572b280 (diff)
upgrade: swc_ecma_visit, dprint, deno_lint (#6580)
Diffstat (limited to 'std')
-rw-r--r--std/path/glob.ts2
-rw-r--r--std/testing/bench.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/std/path/glob.ts b/std/path/glob.ts
index c7d23b344..5288efda9 100644
--- a/std/path/glob.ts
+++ b/std/path/glob.ts
@@ -91,7 +91,7 @@ export function normalizeGlob(
glob: string,
{ globstar = false }: GlobOptions = {}
): string {
- if (!!glob.match(/\0/g)) {
+ if (glob.match(/\0/g)) {
throw new Error(`Glob contains invalid characters: "${glob}"`);
}
if (!globstar) {
diff --git a/std/testing/bench.ts b/std/testing/bench.ts
index 366d6ec1b..e6f4582b9 100644
--- a/std/testing/bench.ts
+++ b/std/testing/bench.ts
@@ -328,13 +328,13 @@ export async function runBenchmarks(
if (!silent) {
// Closing results
console.log(
- `benchmark result: ${!!failError ? red("FAIL") : blue("DONE")}. ` +
+ `benchmark result: ${failError ? red("FAIL") : blue("DONE")}. ` +
`${progress.results.length} measured; ${filtered} filtered`
);
}
// Throw error if there was a failing benchmark
- if (!!failError) {
+ if (failError) {
throw failError;
}