Skip to content

Commit

Permalink
remove needless seek
Browse files Browse the repository at this point in the history
  • Loading branch information
goropikari committed Sep 3, 2022
1 parent 1c4598a commit 7696185
Show file tree
Hide file tree
Showing 3 changed files with 1,727 additions and 1,736 deletions.
3 changes: 0 additions & 3 deletions compiler/lex/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ yystart:
yylex.finPos = yyNewCurrPos
yylex.currPos = yyNewCurrPos
yylex.currStateID = 1
if _, err := yylex.rs.Seek(int64(yylex.currPos), io.SeekStart); err != nil {
return 0, err
}
regexID := yylex.finRegexID
yylex.finRegexID = 0
Expand Down
Loading

0 comments on commit 7696185

Please sign in to comment.