37 lines
2.0 KiB
Java
37 lines
2.0 KiB
Java
package com.discord.stores;
|
|
|
|
import com.discord.stores.StoreUserRelationships;
|
|
import d0.t.h0;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import java.util.Map;
|
|
import java.util.Objects;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: StoreUserRelationships.kt */
|
|
public final class StoreUserRelationships$observe$1 extends o implements Function0<Map<Long, ? extends Integer>> {
|
|
public final /* synthetic */ StoreUserRelationships this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public StoreUserRelationships$observe$1(StoreUserRelationships storeUserRelationships) {
|
|
super(0);
|
|
this.this$0 = storeUserRelationships;
|
|
}
|
|
|
|
/* Return type fixed from 'java.util.Map<java.lang.Long, java.lang.Integer>' to match base method */
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final Map<Long, ? extends Integer> mo1invoke() {
|
|
StoreUserRelationships.UserRelationshipsState access$getRelationshipsStateSnapshot$p = StoreUserRelationships.access$getRelationshipsStateSnapshot$p(this.this$0);
|
|
if (m.areEqual(access$getRelationshipsStateSnapshot$p, StoreUserRelationships.UserRelationshipsState.Unloaded.INSTANCE)) {
|
|
return h0.emptyMap();
|
|
}
|
|
if (access$getRelationshipsStateSnapshot$p instanceof StoreUserRelationships.UserRelationshipsState.Loaded) {
|
|
StoreUserRelationships.UserRelationshipsState access$getRelationshipsStateSnapshot$p2 = StoreUserRelationships.access$getRelationshipsStateSnapshot$p(this.this$0);
|
|
Objects.requireNonNull(access$getRelationshipsStateSnapshot$p2, "null cannot be cast to non-null type com.discord.stores.StoreUserRelationships.UserRelationshipsState.Loaded");
|
|
return ((StoreUserRelationships.UserRelationshipsState.Loaded) access$getRelationshipsStateSnapshot$p2).getRelationships();
|
|
}
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
}
|