Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
chore: remove unreachable code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 24, 2021
1 parent 6eeddc2 commit a0d3181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions terminal/runereader_posix.go
Expand Up @@ -77,7 +77,7 @@ func (rr *RuneReader) ReadRune() (rune, int, error) {
return r, size, err
}
if r != '[' && r != 'O' {
return r, size, fmt.Errorf("unexpected Escape Sequence: %q", []rune{'\033', r})
return r, size, fmt.Errorf("Unexpected Escape Sequence: %q", []rune{'\033', r})
}
r, size, err = rr.state.reader.ReadRune()
if err != nil {
Expand Down Expand Up @@ -105,7 +105,6 @@ func (rr *RuneReader) ReadRune() (rune, int, error) {
rr.state.reader.Discard(1)
return IgnoreKey, 1, nil
}
return r, size, fmt.Errorf("unknown Escape Sequence: %q", []rune{'\033', '[', r})
}
return r, size, err
}

0 comments on commit a0d3181

Please sign in to comment.