mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Fix more codefactor suggestions
This commit is contained in:
parent
991ea8b876
commit
490c11c29e
1 changed files with 6 additions and 9 deletions
|
@ -251,15 +251,13 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
|
|||
// the next connection.
|
||||
if backoffNow() {
|
||||
continue
|
||||
} else {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
// Ephemeral and incoming connections don't remain
|
||||
// after a connection failure, so exit out of the
|
||||
// loop and clean up the link entry.
|
||||
break
|
||||
return
|
||||
}
|
||||
// Ephemeral and incoming connections don't remain
|
||||
// after a connection failure, so exit out of the
|
||||
// loop and clean up the link entry.
|
||||
break
|
||||
}
|
||||
|
||||
// The linkConn wrapper allows us to track the number of
|
||||
|
@ -310,9 +308,8 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
|
|||
continue
|
||||
}
|
||||
return
|
||||
} else {
|
||||
break
|
||||
}
|
||||
break
|
||||
}
|
||||
}()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue