Skip to content

Commit

Permalink
Fix readline error handling by reverting err shadowing bug introduced…
Browse files Browse the repository at this point in the history
… in pr manifoldco#86
  • Loading branch information
shaneharter committed Mar 31, 2019
1 parent ae9f05e commit ae1a6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (p *Prompt) Run() (string, error) {
c.SetListener(listen)

for {
_, err := rl.Readline()
_, err = rl.Readline()
inputErr = validFn(cur.Get())
if inputErr == nil {
break
Expand Down

0 comments on commit ae1a6f6

Please sign in to comment.