« 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/data/thing.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/data/thing.js
parent255102c21db9194535d304f181a2a0145e9b3c8a (diff)
eslint: make use of optional catch binding more often
Diffstat (limited to 'src/data/thing.js')
-rw-r--r--src/data/thing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/thing.js b/src/data/thing.js
index 66f73de5..f719224d 100644
--- a/src/data/thing.js
+++ b/src/data/thing.js
@@ -60,7 +60,7 @@ export default class Thing extends CacheableObject {
       if (this.name) {
         name = colors.green(`"${this.name}"`);
       }
-    } catch (error) {
+    } catch {
       name = colors.yellow(`couldn't get name`);
     }
 
@@ -69,7 +69,7 @@ export default class Thing extends CacheableObject {
       if (this.directory) {
         reference = colors.blue(Thing.getReference(this));
       }
-    } catch (error) {
+    } catch {
       reference = colors.yellow(`couldn't get reference`);
     }