Strip unnecessary continue statement

This commit is contained in:
Milos Gajdos 2020-01-16 17:33:53 +00:00
parent 472186c1be
commit 8fcfbc0d20
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -1070,10 +1070,8 @@ func (n *network) processNetChan(listener tunnel.Listener) {
// we found no routes for the given service
// create the new route we have just received
if len(routes) == 0 {
// add routes to the routing table
if err := n.router.Table().Create(route); err != nil && err != router.ErrDuplicateRoute {
log.Debugf("Network node %s failed to add route: %v", n.id, err)
continue
}
continue
}