33 lines
986 B
Java
33 lines
986 B
Java
package com.discord.stores;
|
|
|
|
import d0.z.d.m;
|
|
import j0.k.b;
|
|
/* compiled from: StoreGuilds.kt */
|
|
public final class StoreGuilds$Actions$requestMembers$1<T, R> implements b<String, String> {
|
|
public final /* synthetic */ boolean $autocomplete;
|
|
|
|
public StoreGuilds$Actions$requestMembers$1(boolean z2) {
|
|
this.$autocomplete = z2;
|
|
}
|
|
|
|
public final String call(String str) {
|
|
boolean z2 = false;
|
|
if (this.$autocomplete) {
|
|
if (!(str == null || str.length() == 0) && str.charAt(0) == '@') {
|
|
String substring = str.substring(1);
|
|
m.checkNotNullExpressionValue(substring, "(this as java.lang.String).substring(startIndex)");
|
|
return substring;
|
|
}
|
|
}
|
|
if (!this.$autocomplete) {
|
|
if (str == null || str.length() == 0) {
|
|
z2 = true;
|
|
}
|
|
if (!z2) {
|
|
return str;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|