Updated Main Class to remove unnecessary space

This commit is contained in:
5gi 2022-11-09 10:55:16 -05:00
parent d1419d48e0
commit 787664bb38

View File

@ -12,7 +12,6 @@ import java.nio.charset.StandardCharsets;
import java.util.Objects;
public class Translator {
public static String globalAuthKey = "null";
public static void setGlobalAuthKey(String key) {
globalAuthKey = key;
}
@ -53,7 +52,6 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
}
request = new Request(authKey);
}
public String translate(Language langToTranslateTo, String sourceMessage) {
String response = "Error processing request";
try {
@ -88,7 +86,6 @@ instead of "new Translator(String authKey)". NOTE: This will work but just some
return response.body();
}
}
public enum Language {
Bulgarian("BG"),
Czech("CS"),