1
0
Fork 0
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:
Max Coplan 2023-01-13 18:51:57 -05:00 committed by Bartek Iwańczuk
parent 3888162cfa
commit 8e0c2f34fa
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -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;