Skip to content

Commit

Permalink
small refactor IncompleteBlock.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
tomblachut committed Jul 30, 2020
1 parent 4ce13d5 commit e9bf8a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ sealed class IncompleteBlock {

companion object {
fun create(tagLevel: Int, token: IElementType, resultMarker: Marker, fragmentMarker: Marker): IncompleteBlock {
val outerMarker = resultMarker.precede()
val innerMarker = resultMarker.precede()
val outerMarker = innerMarker.precede()
return when (token) {
SvelteTagElementTypes.IF_START -> IncompleteIfBlock(tagLevel, outerMarker, innerMarker, fragmentMarker)
SvelteTagElementTypes.EACH_START -> IncompleteEachBlock(tagLevel, outerMarker, innerMarker, fragmentMarker)
Expand Down

0 comments on commit e9bf8a6

Please sign in to comment.