Apply gofmt simplification

This commit is contained in:
Leonid Bugaev
2016-04-20 22:03:19 +05:00
parent d3e58ba374
commit 334db15df9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ func payloadBody(payload []byte) []byte {
func payloadMeta(payload []byte) [][]byte {
headerSize := bytes.IndexByte(payload, '\n')
if headerSize < 0 {
headerSize = 0;
if headerSize < 0 {
headerSize = 0
}
return bytes.Split(payload[:headerSize], []byte{' '})
}