mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-08 09:07:10 +00:00
lint: s/+=1/++, remove else clauses
This commit is contained in:
@@ -72,7 +72,7 @@ func (s *SocketServer) addConn(conn net.Conn) int {
|
||||
defer s.connsMtx.Unlock()
|
||||
|
||||
connID := s.nextConnID
|
||||
s.nextConnID += 1
|
||||
s.nextConnID++
|
||||
s.conns[connID] = conn
|
||||
|
||||
return connID
|
||||
|
||||
Reference in New Issue
Block a user