diff --git a/cli/input/input.go b/cli/input/input.go index 564adb18c..14fac892f 100644 --- a/cli/input/input.go +++ b/cli/input/input.go @@ -69,7 +69,7 @@ func ConfirmTx(w io.Writer, tx *transaction.Transaction) error { if err != nil { return err } - if 0 < len(ln) && ln[0] == 'y' || ln[0] == 'Y' { + if 0 < len(ln) && (ln[0] == 'y' || ln[0] == 'Y') { return nil } return errors.New("cancelled")