fix lint failures with 1.31 (#5489)

This commit is contained in:
Marko
2020-10-13 10:22:53 +02:00
committed by GitHub
parent 7121f68f25
commit 346aa14db5
58 changed files with 98 additions and 144 deletions

View File

@@ -46,14 +46,17 @@ func main() {
if err == nil {
_, err = os.Stdout.Write([]byte("\n"))
}
if err == nil {
if endMsg, ok := msg.Msg.(cs.EndHeightMessage); ok {
_, err = os.Stdout.Write([]byte(fmt.Sprintf("ENDHEIGHT %d\n", endMsg.Height)))
}
}
if err != nil {
fmt.Println("Failed to write message", err)
os.Exit(1)
os.Exit(1) //nolint:gocritic
}
}
}