Skip to content

Commit 95df07b

Browse files
committed
Analysis: Resolve unnecessary safe call type warning for ui tests
Warning Message: "Unnecessary safe call on a non-null receiver of type kotlin.collections.ArrayList<IAztecPlugin> /* = java.util.ArrayList<IAztecPlugin> */. This expression will have nullable type in future releases"
1 parent e190bc1 commit 95df07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/androidTest/kotlin/org/wordpress/aztec/demo/tests/GutenbergCompatTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class GutenbergCompatTests : BaseTest() {
328328
val editorPage = EditorPage()
329329
val audioShortcodePlugin = AudioShortcodePlugin()
330330
val aztecText = mActivityIntentsTestRule.activity.findViewById<AztecText>(R.id.aztec)
331-
aztecText.plugins?.add(audioShortcodePlugin)
331+
aztecText.plugins.add(audioShortcodePlugin)
332332

333333
// let's test the plugin works as expected, i.e. it preserves the Gutenberg block structure
334334
editorPage

0 commit comments

Comments
 (0)