Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
skyforce77 committed Jul 19, 2018
1 parent 99a7229 commit 31579be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"bytes"
"compress/zlib"
"encoding/binary"
"fmt"
"log"
"net"
"fmt"
)

type State int8
Expand Down
4 changes: 2 additions & 2 deletions packet_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (packet *PacketBossBar) Id() int {

type PacketPlayPluginMessage struct {
channel string
data []byte
data []byte
}

func (packet *PacketPlayPluginMessage) Read(player *Player, length int) (err error) {
Expand All @@ -400,7 +400,7 @@ func (packet *PacketPlayPluginMessage) Read(player *Player, length int) (err err
return
}

dataLength := length-read
dataLength := length - read
if player.protocol < V1_8 {
sread, err := player.ReadUInt16()
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ func (player *Player) ReadNStringLimited(max int) (s string, read int, err error
buffer := make([]byte, length)
_, err = io.ReadFull(player.io.rdr, buffer)
if err != nil {
return "", read+length, err
return "", read + length, err
}
return string(buffer), read+length, nil
return string(buffer), read + length, nil
}

func (player *Player) WriteByteArray(data []byte) (err error) {
Expand Down

0 comments on commit 31579be

Please sign in to comment.