forked from Steven/DeepJ
fixed return and .setAuthKey again
This commit is contained in:
parent
dba816a33e
commit
cf6d1e7128
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user