keep linter happy
This commit is contained in:
1 parent
0cbbe9bac3
commit
ef2c55141b
1 file changed
+1
-1
@@ -162,7 +162,7 @@ func (peer *LocalPeer) handleAddConnection(conn Connection) error {
|
|||||||
log.Fatal("Attempt made to add connection to peer with unknown remote peer")
|
log.Fatal("Attempt made to add connection to peer with unknown remote peer")
|
||||||
}
|
}
|
||||||
toName := conn.Remote().Name
|
toName := conn.Remote().Name
|
||||||
dupErr := fmt.Errorf("Multiple connections to %s added to %s", conn.Remote(), peer)
|
dupErr := fmt.Errorf("Multiple connections to %s added to %s", conn.Remote(), peer.String())
|
||||||
// deliberately non symmetrical
|
// deliberately non symmetrical
|
||||||
if dupConn, found := peer.connections[toName]; found {
|
if dupConn, found := peer.connections[toName]; found {
|
||||||
if dupConn == conn {
|
if dupConn == conn {
|
||||||
|
|||||||
Reference in new issue
Block a user