forked from 5gi/DeepJ
		
	Updated Main Class to remove unnecessary space
This commit is contained in:
		
							parent
							
								
									d1419d48e0
								
							
						
					
					
						commit
						787664bb38
					
				@ -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"),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user