Skip to content

Commit

Permalink
Analysis: Resolve unnecessary safe call type warning for ui tests
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
ParaskP7 committed Nov 17, 2022
1 parent e190bc1 commit 95df07b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class GutenbergCompatTests : BaseTest() {
val editorPage = EditorPage()
val audioShortcodePlugin = AudioShortcodePlugin()
val aztecText = mActivityIntentsTestRule.activity.findViewById<AztecText>(R.id.aztec)
aztecText.plugins?.add(audioShortcodePlugin)
aztecText.plugins.add(audioShortcodePlugin)

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

0 comments on commit 95df07b

Please sign in to comment.