From 334db15df9e80684569c2c0f5690b34fff77d118 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Wed, 20 Apr 2016 22:03:19 +0500 Subject: [PATCH] Apply gofmt simplification --- Makefile | 2 +- protocol.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index edb323b..a48466f 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ cover: go tool cover -html=coverage.out fmt: - $(RUN) go fmt ./... + $(RUN) gofmt -w -s ./.. vet: $(RUN) go vet diff --git a/protocol.go b/protocol.go index a4e9eaa..1b4c484 100644 --- a/protocol.go +++ b/protocol.go @@ -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{' '}) }