Format code with gofumpt (#724)

This commit fixes the style issues introduced in b81470d according to the output
from gofumpt.

Details: https://deepsource.io/gh/anacrolix/torrent/transform/ccafd976-fc9a-4c8a-bbfe-bc36426e79cb/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot] 2022-02-11 22:45:12 +11:00 committed by GitHub
parent b81470dc39
commit e3d08999e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,6 @@ func decodeHugeString(t *testing.T, strLen int64, header, tail string, v interfa
d := NewDecoder(r)
d.MaxStrLen = maxStrLen
return d.Decode(v)
}
// Ensure that bencode strings in various places obey the Decoder.MaxStrLen field.

View File

@ -60,9 +60,11 @@ func (me webrtcNetConn) RemoteAddr() net.Addr {
func (w webrtcNetConn) SetDeadline(t time.Time) error {
return nil
}
func (w webrtcNetConn) SetReadDeadline(t time.Time) error {
return nil
}
func (w webrtcNetConn) SetWriteDeadline(t time.Time) error {
return nil
}