]> Cypherpunks repositories - gostls13.git/commit
net: clean up redundant if branch in dial
authorShang Ding <sding3@ncsu.edu>
Thu, 24 Feb 2022 01:35:21 +0000 (19:35 -0600)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 31 Mar 2022 06:40:26 +0000 (06:40 +0000)
commitebe624dd30f7be1479a2224b60a0da1b152ec851
treedf423980fe7df0fe2cdee13bd3a1bf3f7a9489af
parent2b8178c14d8f71a3f022653c2e779e92eea9cdec
net: clean up redundant if branch in dial

Dialer.DialContext no longer performs a redundant check on the length
of the fallback slice, because dialParallel already handles the
situation where the fallback slice is empty or nil.

Change-Id: Ibb16f4813fc55dec2939c54c10e665ff35bfe163
Reviewed-on: https://go-review.googlesource.com/c/go/+/387795
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
src/net/dial.go