fix lint warnings

replace naked returns with arguments (gofumpt@v0.9.1)
This commit is contained in:
Lawrence, Rendall
2025-09-22 17:11:05 +03:00
parent 61f358c1b2
commit 5513f1357d
28 changed files with 126 additions and 126 deletions

View File

@@ -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() {