Fix linter errors (#3138)

This commit is contained in:
Christopher Goes 2018-12-17 23:49:50 +01:00
parent 2be19b9d33
commit b2c5ffeb31
1 changed files with 5 additions and 4 deletions

View File

@ -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 {