mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05:00
refactor(bench/http): Use optional chaining instead of ||
fallthrough (#17317)
This commit is contained in:
parent
6557642fc8
commit
b23b4e231c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue