Skip to content

Commit

Permalink
Fix no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
fishi0x01 committed Feb 21, 2021
1 parent e407391 commit 614c7e5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ func executor(in string) {
args, err := argv.Argv(in, func(backquoted string) (string, error) {
return backquoted, nil
}, nil)
if err != nil {
log.UserError("%v", err)
return
}
commands := cli.NewCommands(vaultClient)
var cmd cli.Command

// edge cases
if len(args) == 0 {
Expand All @@ -64,6 +58,13 @@ func executor(in string) {
return
}

if err != nil {
log.UserError("%v", err)
return
}
commands := cli.NewCommands(vaultClient)
var cmd cli.Command

// parse command
switch args[0][0] {
case "toggle-auto-completion":
Expand Down

0 comments on commit 614c7e5

Please sign in to comment.