Skip to content

Commit

Permalink
Update with gofmt on tip
Browse files Browse the repository at this point in the history
The changes are compatible with older versions of gofmt.
  • Loading branch information
garyburd committed Nov 23, 2017
1 parent 447c2df commit 23059f2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ func (e *netError) Timeout() bool { return e.timeout }

// CloseError represents close frame.
type CloseError struct {

// Code is defined in RFC 6455, section 11.7.
Code int

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

func (c *Conn) advanceFrame() (int, error) {

// 1. Skip remainder of previous frame.

if c.readRemaining > 0 {
Expand Down
1 change: 0 additions & 1 deletion conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ func TestUnderlyingConn(t *testing.T) {
}

func TestBufioReadBytes(t *testing.T) {

// Test calling bufio.ReadBytes for value longer than read buffer size.

m := make([]byte, 512)
Expand Down
1 change: 0 additions & 1 deletion mask.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import "unsafe"
const wordSize = int(unsafe.Sizeof(uintptr(0)))

func maskBytes(key [4]byte, pos int, b []byte) int {

// Mask one byte at a time for small buffers.
if len(b) < 2*wordSize {
for i := range b {
Expand Down
1 change: 0 additions & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ headers:

// parseExtensiosn parses WebSocket extensions from a header.
func parseExtensions(header http.Header) []map[string]string {

// From RFC 6455:
//
// Sec-WebSocket-Extensions = extension-list
Expand Down

0 comments on commit 23059f2

Please sign in to comment.