From 3988ea9ba5256fc5b6467efa6661de430b2a341d Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 3 Apr 2024 00:15:29 +0200 Subject: [PATCH] cleanup unused js parameters --- dev/Common/Links.js | 5 ++--- dev/Common/Translator.js | 3 +-- dev/Stores/User/GnuPG.js | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dev/Common/Links.js b/dev/Common/Links.js index f8847b95f..d5a8f6416 100644 --- a/dev/Common/Links.js +++ b/dev/Common/Links.js @@ -38,11 +38,10 @@ export const /** * @param {string} download - * @param {string=} customSpecSuffix * @returns {string} */ - attachmentDownload = (download, customSpecSuffix) => - serverRequestRaw('Download', download, customSpecSuffix), + attachmentDownload = (download) => + serverRequestRaw('Download', download), proxy = url => BASE + '?/ProxyExternal/' diff --git a/dev/Common/Translator.js b/dev/Common/Translator.js index 9976979fb..8124a7933 100644 --- a/dev/Common/Translator.js +++ b/dev/Common/Translator.js @@ -45,8 +45,7 @@ export const } } if (Intl.RelativeTimeFormat) { - let rtf = new Intl.RelativeTimeFormat(doc.documentElement.lang); - return rtf.format(seconds, unit); + return (new Intl.RelativeTimeFormat(doc.documentElement.lang)).format(seconds, unit); } // Safari < 14 abs = Math.abs(seconds); diff --git a/dev/Stores/User/GnuPG.js b/dev/Stores/User/GnuPG.js index 6674b6a49..843f4d5a9 100644 --- a/dev/Stores/User/GnuPG.js +++ b/dev/Stores/User/GnuPG.js @@ -165,8 +165,8 @@ export const GnuPGUserStore = new class { return fingerprints; } - getPrivateKeyFor(query, sign) { - return findGnuPGKey(this.privateKeys, query, sign); + getPrivateKeyFor(query/*, sign*/) { + return findGnuPGKey(this.privateKeys, query/*, sign*/); } async decrypt(message) {