forked from cerc-io/laconicd-deprecated
Update golangci-lint config and fix linting issues (#168)
* update golangci * update golang lint yml and updated linting issues
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user