Skip to content

Commit

Permalink
adjusting according review
Browse files Browse the repository at this point in the history
  • Loading branch information
jleni committed Feb 8, 2019
1 parent 04d17b4 commit a48899e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
4 changes: 0 additions & 4 deletions client/keys/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ func runAddCmd(_ *cobra.Command, args []string) error {
var err error
var encryptPassword string

if len(args) < 1 {
return errors.New("not enough arguments")
}

buf := client.BufferStdin()
name := args[0]

Expand Down
3 changes: 0 additions & 3 deletions client/keys/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ gaiacli.
}

func runDeleteCmd(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("a name must be provided")
}
name := args[0]

kb, err := NewKeyBaseFromHomeFlag()
Expand Down
4 changes: 0 additions & 4 deletions client/keys/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ func showKeysCmd() *cobra.Command {
func runShowCmd(cmd *cobra.Command, args []string) (err error) {
var info keys.Info

if len(args) < 1 {
return errors.New("not enough arguments")
}

if len(args) == 1 {
info, err = GetKeyInfo(args[0])
if err != nil {
Expand Down
8 changes: 1 addition & 7 deletions client/keys/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ import (
"fmt"
"net/http"

"github.com/pkg/errors"

"github.com/gorilla/mux"

"github.com/cosmos/cosmos-sdk/client"
keys "github.com/cosmos/cosmos-sdk/crypto/keys"
"github.com/cosmos/cosmos-sdk/crypto/keys"

"github.com/spf13/cobra"

Expand All @@ -28,10 +26,6 @@ func updateKeyCommand() *cobra.Command {
}

func runUpdateCmd(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("not enough arguments")
}

name := args[0]

buf := client.BufferStdin()
Expand Down

0 comments on commit a48899e

Please sign in to comment.