From 0cec24ec409a7e770c9b694038b8580a4eaa772e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 21 Jul 2024 07:07:45 +0200 Subject: [PATCH] Revert "DeepL: URI" This reverts commit f14c44c0a2d434229d23091cf66732041b04d489. --- app/src/main/java/eu/faircode/email/DeepL.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/DeepL.java b/app/src/main/java/eu/faircode/email/DeepL.java index 8cfa446f36..87c1e5f7e8 100644 --- a/app/src/main/java/eu/faircode/email/DeepL.java +++ b/app/src/main/java/eu/faircode/email/DeepL.java @@ -337,8 +337,6 @@ public class DeepL { } private static String getBaseUri(String key) { - if (key != null && key.startsWith("https://")) - return key; String domain = (key != null && key.endsWith(":fx") ? "api-free.deepl.com" : "api.deepl.com"); return "https://" + domain + "/v2/"; }