mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 07:30:00 -07:00
fix lint warnings
replace naked returns with arguments (gofumpt@v0.9.1)
This commit is contained in:
@@ -27,7 +27,7 @@ func randIH(v2 bool) (ih bittorrent.InfoHash) {
|
||||
panic(err)
|
||||
}
|
||||
ih, _ = bittorrent.NewInfoHash(b)
|
||||
return
|
||||
return ih
|
||||
}
|
||||
|
||||
func randPeerID() (ih bittorrent.PeerID) {
|
||||
@@ -36,7 +36,7 @@ func randPeerID() (ih bittorrent.PeerID) {
|
||||
panic(err)
|
||||
}
|
||||
ih, _ = bittorrent.NewPeerID(b)
|
||||
return
|
||||
return ih
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user