From b2c5ffeb3103fbc9bea9deb0416e7bb18956cf72 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Mon, 17 Dec 2018 23:49:50 +0100 Subject: [PATCH] Fix linter errors (#3138) --- cmd/logjack/main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/logjack/main.go b/cmd/logjack/main.go index c724ee4a17..cb4048814b 100644 --- a/cmd/logjack/main.go +++ b/cmd/logjack/main.go @@ -12,6 +12,7 @@ import ( cmn "github.com/tendermint/tendermint/libs/common" ) +//nolint const Version = "0.0.2" const sleepSeconds = 1 // Every second const readBufferSize = 1024 // 1KB at a time @@ -24,7 +25,7 @@ func parseFlags() (headPath string, chopSize int64, limitSize int64, version boo flagSet.StringVar(&chopSizeStr, "chop", "100M", "Move file if greater than this") flagSet.StringVar(&limitSizeStr, "limit", "10G", "Only keep this much (for each specified file). Remove old files.") flagSet.BoolVar(&version, "version", false, "Version") - flagSet.Parse(os.Args[1:]) + flagSet.Parse(os.Args[1:]) //nolint chopSize = parseBytesize(chopSizeStr) limitSize = parseBytesize(limitSizeStr) return @@ -59,10 +60,10 @@ func main() { buf := make([]byte, readBufferSize) for { n, err := os.Stdin.Read(buf) - group.Write(buf[:n]) - group.Flush() + group.Write(buf[:n]) //nolint + group.Flush() //nolint if err != nil { - group.Stop() + group.Stop() //nolint if err == io.EOF { os.Exit(0) } else {