linters: enable stylecheck (#4153)

Refs #3262
This commit is contained in:
Anton Kaliaev
2019-11-16 19:35:39 +04:00
committed by GitHub
parent 36ba1a8494
commit 3e1516b624
137 changed files with 590 additions and 589 deletions

View File

@@ -52,19 +52,19 @@ func main() {
dec := cs.NewWALEncoder(walFile)
for {
msgJson, _, err := br.ReadLine()
msgJSON, _, err := br.ReadLine()
if err == io.EOF {
break
} else if err != nil {
panic(fmt.Errorf("failed to read file: %v", err))
}
// ignore the ENDHEIGHT in json.File
if strings.HasPrefix(string(msgJson), "ENDHEIGHT") {
if strings.HasPrefix(string(msgJSON), "ENDHEIGHT") {
continue
}
var msg cs.TimedWALMessage
err = cdc.UnmarshalJSON(msgJson, &msg)
err = cdc.UnmarshalJSON(msgJSON, &msg)
if err != nil {
panic(fmt.Errorf("failed to unmarshal json: %v", err))
}