fixed return and .setAuthKey again

This commit is contained in:
5gi 2022-11-16 10:49:17 -05:00
parent dba816a33e
commit cf6d1e7128

View File

@ -82,7 +82,7 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
public String translate(Language langToTranslateTo, String sourceMessage) {
if (request.authKey == "null") {
System.out.println("[DeepJ] This translator is null! Please recreate!");
return;
return "null";
}
String response = "Error processing request";
try {
@ -101,7 +101,7 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
return message;
}
protected static class Request {
public final String authKey;
public String authKey;
public Request(String authKey) {
this.authKey = authKey;
}