« get me outta code hell

eslint: make use of optional catch binding more often - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/gen-thumbs.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-27 19:39:39 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-27 19:46:23 -0300
commit68a09934a1f38c0d0ea3fabc64a5390894d931fa (patch)
tree5493dcde92b75da67ffc1eb24d9d0c5fc1212ae5 /src/gen-thumbs.js
parent255102c21db9194535d304f181a2a0145e9b3c8a (diff)
eslint: make use of optional catch binding more often
Diffstat (limited to 'src/gen-thumbs.js')
-rw-r--r--src/gen-thumbs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gen-thumbs.js b/src/gen-thumbs.js
index d15a8040..7d4bf059 100644
--- a/src/gen-thumbs.js
+++ b/src/gen-thumbs.js
@@ -446,7 +446,7 @@ async function getImageMagickVersion(binary) {
 
   try {
     await promisifyProcess(proc, false);
-  } catch (error) {
+  } catch {
     return null;
   }
 
@@ -627,7 +627,7 @@ export async function determineMediaCachePath({
   try {
     const files = await readdir(mediaPath);
     mediaIncludesThumbnailCache = files.includes(CACHE_FILE);
-  } catch (error) {
+  } catch {
     mediaIncludesThumbnailCache = false;
   }
 
@@ -860,7 +860,7 @@ export async function migrateThumbsIntoDedicatedCacheDirectory({
         path.join(mediaPath, CACHE_FILE),
         path.join(mediaCachePath, CACHE_FILE));
       logInfo`Moved thumbnail cache file.`;
-    } catch (error) {
+    } catch {
       logWarn`Failed to move cache file. (${CACHE_FILE})`;
       logWarn`Check its permissions, or try copying/pasting.`;
     }