]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Format code with gofumpt (#724)
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Fri, 11 Feb 2022 11:45:12 +0000 (22:45 +1100)
committerGitHub <noreply@github.com>
Fri, 11 Feb 2022 11:45:12 +0000 (22:45 +1100)
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>
bencode/decode_test.go
webrtc.go

index eaf9e71ea09749460b4badb0400858efd3741ec8..d06da8d380d94d1773170652a1617d13b0c6fdd9 100644 (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.
index 44ef6ca24099a1a88a7c966806350d99a370840b..c217a510a2372090358dcf361a92d16a4843b119 100644 (file)
--- a/webrtc.go
+++ b/webrtc.go
@@ -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
 }