From b23b4e231c5c6a4f500e69fd3e19955865b62141 Mon Sep 17 00:00:00 2001 From: Max Coplan Date: Fri, 13 Jan 2023 18:51:57 -0500 Subject: refactor(bench/http): Use optional chaining instead of `||` fallthrough (#17317) --- cli/bench/http/deno_http_flash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/bench/http/deno_http_flash.js') 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; -- cgit v1.2.3