mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Apply gofmt simplification
This commit is contained in:
@@ -34,7 +34,7 @@ cover:
|
||||
go tool cover -html=coverage.out
|
||||
|
||||
fmt:
|
||||
$(RUN) go fmt ./...
|
||||
$(RUN) gofmt -w -s ./..
|
||||
|
||||
vet:
|
||||
$(RUN) go vet
|
||||
|
||||
+2
-2
@@ -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{' '})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user