Update golangci-lint config and fix linting issues (#168)

* update golangci

* update golang lint yml and updated linting issues
This commit is contained in:
Austin Abell
2020-01-08 09:56:49 +13:00
committed by GitHub
parent b98685c46b
commit 51adade59f
11 changed files with 56 additions and 255 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ func keyCommands() *cobra.Command {
return cmd
}
func getKeybase(cmd *cobra.Command, dryrun bool, buf io.Reader) (keys.Keybase, error) {
func getKeybase(dryrun bool, buf io.Reader) (keys.Keybase, error) {
if dryrun {
return keys.NewInMemory(keys.WithKeygenFunc(ethermintKeygenFunc)), nil
}
@@ -61,7 +61,7 @@ func getKeybase(cmd *cobra.Command, dryrun bool, buf io.Reader) (keys.Keybase, e
func runAddCmd(cmd *cobra.Command, args []string) error {
inBuf := bufio.NewReader(cmd.InOrStdin())
kb, err := getKeybase(cmd, viper.GetBool(flagDryRun), inBuf)
kb, err := getKeybase(viper.GetBool(flagDryRun), inBuf)
if err != nil {
return err
}