From c4e0e3071f5c2609f428cf50c62ac51f8415c9b8 Mon Sep 17 00:00:00 2001 From: Maxim Pestryakov Date: Thu, 23 Sep 2021 14:53:53 +0300 Subject: [PATCH] Fixed Bootstrapper variance --- .../src/main/java/com/badoo/feature2/Feature2.kt | 4 ++-- .../src/main/java/com/badoo/mvicore/element/Bootstrapper.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mvicore-demo/mvicore-demo-feature2/src/main/java/com/badoo/feature2/Feature2.kt b/mvicore-demo/mvicore-demo-feature2/src/main/java/com/badoo/feature2/Feature2.kt index 4ddeb7f5..7f0d98e2 100644 --- a/mvicore-demo/mvicore-demo-feature2/src/main/java/com/badoo/feature2/Feature2.kt +++ b/mvicore-demo/mvicore-demo-feature2/src/main/java/com/badoo/feature2/Feature2.kt @@ -50,7 +50,7 @@ class Feature2( sealed class Effect { object StartedLoading : Effect() data class LoadedImage(val url: String) : Effect() - data class ErrorLoading(val throwable : Throwable) : Effect() + data class ErrorLoading(val throwable: Throwable) : Effect() } sealed class News { @@ -58,7 +58,7 @@ class Feature2( } class BootStrapperImpl : Bootstrapper { - override fun invoke(): Observable = just(LoadNewImage) + override fun invoke(): Observable = just(LoadNewImage) } class ActorImpl : Actor { diff --git a/mvicore/src/main/java/com/badoo/mvicore/element/Bootstrapper.kt b/mvicore/src/main/java/com/badoo/mvicore/element/Bootstrapper.kt index f2819f47..4d562849 100644 --- a/mvicore/src/main/java/com/badoo/mvicore/element/Bootstrapper.kt +++ b/mvicore/src/main/java/com/badoo/mvicore/element/Bootstrapper.kt @@ -2,4 +2,4 @@ package com.badoo.mvicore.element import io.reactivex.Observable -typealias Bootstrapper = () -> Observable +typealias Bootstrapper = () -> Observable