discord-jadx/app/src/main/java/com/discord/gateway/GatewaySocket$discover$2.java

36 lines
1.4 KiB
Java

package com.discord.gateway;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
/* compiled from: GatewaySocket.kt */
public final class GatewaySocket$discover$2 extends o implements Function1<String, Unit> {
public final /* synthetic */ GatewaySocket this$0;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public GatewaySocket$discover$2(GatewaySocket gatewaySocket) {
super(1);
this.this$0 = gatewaySocket;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(String str) {
invoke(str);
return Unit.a;
}
public final void invoke(String str) {
String str2;
m.checkNotNullParameter(str, "gatewayUrl");
GatewaySocket gatewaySocket = this.this$0;
Function1 access$getGatewayUrlTransform$p = GatewaySocket.access$getGatewayUrlTransform$p(gatewaySocket);
if (!(access$getGatewayUrlTransform$p == null || (str2 = (String) access$getGatewayUrlTransform$p.invoke(str)) == null)) {
str = str2;
}
GatewaySocket.access$connect(gatewaySocket, str);
}
}