mirror of
https://github.com/denoland/deno.git
synced 2025-01-16 02:48:52 -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.
|
// 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 [hostname, port] = addr.split(":");
|
||||||
const { serve } = Deno;
|
const { serve } = Deno;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue