Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Verseth committed Jul 23, 2023
1 parent c32fbe4 commit 5c12400
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestEagerLexerNext(t *testing.T) {

func charLex(s string) []Token {
var result []Token
for i, _ := range s {
for i := range s {
result = append(result, NewSimpleToken(0, istrings.ByteNumber(i)))
}

Expand Down
1 change: 0 additions & 1 deletion prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ func (p *Prompt) feed(b []byte) (shouldExit bool, rerender bool, userInput *User

cols := p.renderer.UserInputColumns()
rows := p.renderer.row
rerender = true

switch key {
case Enter, ControlJ, ControlM:
Expand Down

0 comments on commit 5c12400

Please sign in to comment.