Skip to content

Commit 655a87d

Browse files
committed
Replace var with val
1 parent 4d86aa4 commit 655a87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/formatting/LineBlockFormatter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class LineBlockFormatter(editor: AztecText) : AztecFormatter(editor) {
168168
}
169169

170170
private fun insertSpanAfterBlock(ssb: SpannableStringBuilder) {
171-
var position = getEndOfBlock()
171+
val position = getEndOfBlock()
172172
// We need to be sure the cursor is placed correctly after media insertion
173173
// Note that media has '\n' around them when needed
174174
val isLastItem = position == EndOfBufferMarkerAdder.safeLength(editor)

0 commit comments

Comments
 (0)