]> Cypherpunks repositories - gostls13.git/commit
net: simplify bool expression
authorludweeg <mursalimovemeel@gmail.com>
Sat, 6 Oct 2018 15:38:37 +0000 (18:38 +0300)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sun, 7 Oct 2018 02:36:02 +0000 (02:36 +0000)
commit165ebaf97bc4c4863a756775d75ddc750c55b8f2
tree2d3cad9cda483d7e7e01696b1fd05afe58b262e5
parent2bb91e093cb57c5ba5ca71f0d0a63913a07f21f4
net: simplify bool expression

Simplify `!(x <= y)` to `x > y` and `!(x >= y)` to `x < y` where x,y are not defined as float.

Change-Id: Id1e5b518395d97e75f96aa4ac5d6c0ee990c0e7d
Reviewed-on: https://go-review.googlesource.com/c/140337
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
src/net/dial_test.go