summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Coplan <mchcopl@gmail.com>2023-01-13 18:51:57 -0500
committerGitHub <noreply@github.com>2023-01-14 00:51:57 +0100
commitb23b4e231c5c6a4f500e69fd3e19955865b62141 (patch)
tree54239e2f3441a1518854f221372f1e080d298ca1
parent6557642fc8aafe35b3884ca0a04da75451efabf4 (diff)
refactor(bench/http): Use optional chaining instead of `||` fallthrough (#17317)
-rw-r--r--cli/bench/http/deno_http_flash.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/bench/http/deno_http_flash.js b/cli/bench/http/deno_http_flash.js
index 4add599eb..a0db62630 100644
--- a/cli/bench/http/deno_http_flash.js
+++ b/cli/bench/http/deno_http_flash.js
@@ -1,6 +1,6 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-const addr = Deno.args[0] || "127.0.0.1:4500";
+const addr = Deno.args[0] ?? "127.0.0.1:4500";
const [hostname, port] = addr.split(":");
const { serve } = Deno;