Skip to content

Commit eaa4a44

Browse files
committed
removed null safety operator for toolbar var
1 parent 8525691 commit eaa4a44

File tree

1 file changed

+3
-3
lines changed
  • aztec/src/main/kotlin/org/wordpress/aztec

1 file changed

+3
-3
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/Aztec.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ open class Aztec private constructor(val visualEditor: AztecText, val toolbar: A
120120
plugins.add(plugin)
121121

122122
if (plugin is IToolbarButton) {
123-
toolbar?.addButton(plugin)
123+
toolbar.addButton(plugin)
124124
}
125125

126126
return this
@@ -131,8 +131,8 @@ open class Aztec private constructor(val visualEditor: AztecText, val toolbar: A
131131
}
132132

133133
private fun initToolbar() {
134-
toolbar?.setEditor(visualEditor, sourceEditor)
135-
toolbar?.setToolbarListener(toolbarClickListener)
134+
toolbar.setEditor(visualEditor, sourceEditor)
135+
toolbar.setToolbarListener(toolbarClickListener)
136136
visualEditor.setToolbar(toolbar)
137137
}
138138

0 commit comments

Comments
 (0)