mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 17:49:08 -05:00
refactor(bench/http): Use optional chaining instead of ||
fallthrough (#17317)
This commit is contained in:
parent
3888162cfa
commit
8e0c2f34fa
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