Skip to content

Commit 37d0eb7

Browse files
committed
Fix lint issues
1 parent 16332cb commit 37d0eb7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

media-placeholders/src/main/java/org/wordpress/aztec/placeholders/PlaceholderManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class PlaceholderManager(
157157
selectionStartMinusOne to selectionStart
158158
} else if (editableText[selectionStartMinusOne] == '\n' && editableText[selectionStartMinusTwo] == Constants.IMG_CHAR) {
159159
selectionStartMinusTwo to selectionStart
160-
} else if (editableText[selectionEndPlusOne] == Constants.IMG_CHAR){
160+
} else if (editableText[selectionEndPlusOne] == Constants.IMG_CHAR) {
161161
selectionEndPlusOne to (selectionEndPlusOne + 1).coerceAtMost(aztecText.length())
162162
} else if (editableText[selectionEndPlusOne] == '\n' && editableText[selectionEndPlusTwo] == Constants.IMG_CHAR) {
163163
selectionEndPlusTwo to (selectionEndPlusTwo + 1).coerceAtMost(aztecText.length())

media-placeholders/src/test/java/org/wordpress/aztec/placeholders/PlaceholderTest.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import org.junit.Test
1212
import org.junit.runner.RunWith
1313
import org.robolectric.Robolectric
1414
import org.robolectric.RobolectricTestRunner
15-
import org.wordpress.aztec.AztecAttributes
1615
import org.wordpress.aztec.AztecText
1716
import org.wordpress.aztec.source.SourceViewEditText
1817
import org.wordpress.aztec.toolbar.AztecToolbar

0 commit comments

Comments
 (0)