diff options
author | GagziW <leon.stanko@rwth-aachen.de> | 2018-05-03 16:33:39 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-03 16:33:39 +0800 |
commit | f2447bd4c35573d40e2ef678809657c5a1d4e999 (patch) | |
tree | 86126938eca5086daa6f226007f740081a59fee1 /p2p/simulations | |
parent | ea1724de1a158968aec732a557d3d688c4799887 (diff) | |
download | go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.tar go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.tar.gz go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.tar.bz2 go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.tar.lz go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.tar.xz go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.tar.zst go-tangerine-f2447bd4c35573d40e2ef678809657c5a1d4e999.zip |
p2p: changed if-else blocks to conform with golint (#16660)
Diffstat (limited to 'p2p/simulations')
-rw-r--r-- | p2p/simulations/network.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index caf428ece..0983e0a85 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -738,7 +738,6 @@ func (self *Network) executeNodeEvent(e *Event) error { func (self *Network) executeConnEvent(e *Event) error { if e.Conn.Up { return self.Connect(e.Conn.One, e.Conn.Other) - } else { - return self.Disconnect(e.Conn.One, e.Conn.Other) } + return self.Disconnect(e.Conn.One, e.Conn.Other) } |