about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:23:49 -0500
committerGitHub <noreply@github.com>2023-02-18 03:23:49 +0100
commit634368c491c8e89d93b54dd2dc170f0873beafcb (patch)
treef3875a6a91f7caf6a2fa568f10145d62a089d386 /app/lib
parent6d42820e5df4a2282af1194a98789b45027aabce (diff)
Autofix Rubocop Lint/SymbolConversion (#23683)
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/translation_service/deepl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/translation_service/deepl.rb b/app/lib/translation_service/deepl.rb
index 537fd24c0..151d33d90 100644
--- a/app/lib/translation_service/deepl.rb
+++ b/app/lib/translation_service/deepl.rb
@@ -29,7 +29,7 @@ class TranslationService::DeepL < TranslationService
 
   def request(text, source_language, target_language)
     req = Request.new(:post, endpoint_url, form: { text: text, source_lang: source_language&.upcase, target_lang: target_language, tag_handling: 'html' })
-    req.add_headers('Authorization': "DeepL-Auth-Key #{@api_key}")
+    req.add_headers(Authorization: "DeepL-Auth-Key #{@api_key}")
     req
   end