Skip to content

Commit

Permalink
Removed ineffectual error check (#123)
Browse files Browse the repository at this point in the history
err can't have changed since it has last been checked.
  • Loading branch information
muesli authored and abiosoft committed Jul 23, 2019
1 parent 79d20b1 commit 1b6ad7e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ishell.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,6 @@ func getPosition() (int, int, error) {
fmt.Printf("\033[6n")
var out string
reader := bufio.NewReader(os.Stdin)
if err != nil {
return 0, 0, err
}
for {
b, err := reader.ReadByte()
if err != nil || b == 'R' {
Expand Down

0 comments on commit 1b6ad7e

Please sign in to comment.