Skip to content

Commit

Permalink
update: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
windingwind committed Sep 11, 2023
1 parent 3ec57f8 commit e258b80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/services/deepl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ export const deeplfree = <TranslateTaskProcessor>async function (data) {

export const deeplpro = <TranslateTaskProcessor>async function (data) {
// See https://github.com/windingwind/zotero-pdf-translate/issues/579
return await deepl(data.secret.endsWith('dp')?"https://api.deepl-pro.com/v2/translate":"https://api.deepl.com/v2/translate", data);
return await deepl(
data.secret.endsWith("dp")
? "https://api.deepl-pro.com/v2/translate"
: "https://api.deepl.com/v2/translate",
data,
);
};

async function deepl(url: string, data: Required<TranslateTask>) {
Expand Down

0 comments on commit e258b80

Please sign in to comment.