Replace var with String

This commit is contained in:
Andrea Cavalli 2023-01-02 01:14:38 +01:00
parent b9f9c55760
commit 69a0291513

View File

@ -70,7 +70,7 @@ public final class ConsoleInteractiveAuthenticationData implements Authenticatio
// Choose login type // Choose login type
String mode; String mode;
do { do {
var response = ScannerUtils.askParameter("login", String response = ScannerUtils.askParameter("login",
"Do you want to login using a bot [token], a [phone] number, or a [qr] code? [token/phone/qr]"); "Do you want to login using a bot [token], a [phone] number, or a [qr] code? [token/phone/qr]");
if (response != null) { if (response != null) {
choice = response.trim().toLowerCase(Locale.ROOT); choice = response.trim().toLowerCase(Locale.ROOT);