Browse Source

Update with gofmt on tip

The changes are compatible with older versions of gofmt.
master
Gary Burd 4 years ago
parent
commit
23059f2957
4 changed files with 0 additions and 5 deletions
  1. +0
    -2
      conn.go
  2. +0
    -1
      conn_test.go
  3. +0
    -1
      mask.go
  4. +0
    -1
      util.go

+ 0
- 2
conn.go View File

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


+ 0
- 1
conn_test.go View File

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


+ 0
- 1
mask.go View File

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


+ 0
- 1
util.go View File

@ -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


Loading…
Cancel
Save