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 1539c82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## master - unreleased

BUG FIXES:

* Don't show error on empty line enter in interactive mode ([#85](https://github.com/fishi0x01/vsh/pull/85))

## v0.9.0 (February 6, 2021)

Big thank you to [mattlqx](https://github.com/mattlqx) for the great enhancements.
Expand Down
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 1539c82

Please sign in to comment.