Skip to content

Commit 5f08da9

Browse files
committed
parse: remove unneeded state transitions
this was found after adding more test cases and finding that those lines were not covered
1 parent e735695 commit 5f08da9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

parse/lex.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ func lexSubstitution(l *lexer) stateFn {
246246
l.subsDepth--
247247
l.emit(itemRightDelim)
248248
return lexText
249-
case r == eof || isEndOfLine(r):
250-
return l.errorf("closing brace expected")
251-
case isAlphaNumeric(r) && strings.HasPrefix(l.input[l.lastPos:], "${"):
252-
fallthrough
253249
case r == '$':
254250
return lexVariable
255251
default:

0 commit comments

Comments
 (0)