Skip to content

Commit 23059f2

Browse files
committed
Update with gofmt on tip
The changes are compatible with older versions of gofmt.
1 parent 447c2df commit 23059f2

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

conn.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ func (e *netError) Timeout() bool { return e.timeout }
102102

103103
// CloseError represents close frame.
104104
type CloseError struct {
105-
106105
// Code is defined in RFC 6455, section 11.7.
107106
Code int
108107

@@ -767,7 +766,6 @@ func (c *Conn) SetWriteDeadline(t time.Time) error {
767766
// Read methods
768767

769768
func (c *Conn) advanceFrame() (int, error) {
770-
771769
// 1. Skip remainder of previous frame.
772770

773771
if c.readRemaining > 0 {

conn_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ func TestUnderlyingConn(t *testing.T) {
341341
}
342342

343343
func TestBufioReadBytes(t *testing.T) {
344-
345344
// Test calling bufio.ReadBytes for value longer than read buffer size.
346345

347346
m := make([]byte, 512)

mask.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import "unsafe"
1111
const wordSize = int(unsafe.Sizeof(uintptr(0)))
1212

1313
func maskBytes(key [4]byte, pos int, b []byte) int {
14-
1514
// Mask one byte at a time for small buffers.
1615
if len(b) < 2*wordSize {
1716
for i := range b {

util.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ headers:
180180

181181
// parseExtensiosn parses WebSocket extensions from a header.
182182
func parseExtensions(header http.Header) []map[string]string {
183-
184183
// From RFC 6455:
185184
//
186185
// Sec-WebSocket-Extensions = extension-list

0 commit comments

Comments
 (0)