No need to return the disposable, it is never used

This commit is contained in:
Benoit Marty 2020-07-11 12:46:37 +02:00
parent 31984a57d6
commit 9e1c30ec5d
2 changed files with 2 additions and 4 deletions

View file

@ -162,9 +162,8 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
return this
}
protected fun Disposable.disposeOnDestroy(): Disposable {
protected fun Disposable.disposeOnDestroy() {
uiDisposables.add(this)
return this
}
override fun onCreate(savedInstanceState: Bundle?) {

View file

@ -234,9 +234,8 @@ abstract class VectorBaseFragment : BaseMvRxFragment(), HasScreenInjector {
private val uiDisposables = CompositeDisposable()
protected fun Disposable.disposeOnDestroyView(): Disposable {
protected fun Disposable.disposeOnDestroyView() {
uiDisposables.add(this)
return this
}
/* ==========================================================================================