lint: enable errcheck (#5336)

## Description

Enable errcheck linter throughout the codebase

Closes: #5059
This commit is contained in:
Marko
2020-09-07 17:03:18 +02:00
committed by GitHub
parent 3359e0bf2f
commit 0ed8dba991
39 changed files with 346 additions and 137 deletions

View File

@@ -136,7 +136,9 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
return err
}
initFilesWithConfig(config)
if err := initFilesWithConfig(config); err != nil {
return err
}
pvKeyFile := filepath.Join(nodeDir, config.BaseConfig.PrivValidatorKey)
pvStateFile := filepath.Join(nodeDir, config.BaseConfig.PrivValidatorState)
@@ -170,7 +172,9 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
return err
}
initFilesWithConfig(config)
if err := initFilesWithConfig(config); err != nil {
return err
}
}
// Generate genesis doc from generated validators