diff options
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 |
commit | 68a09934a1f38c0d0ea3fabc64a5390894d931fa (patch) | |
tree | 5493dcde92b75da67ffc1eb24d9d0c5fc1212ae5 /src/data/cacheable-object.js | |
parent | 255102c21db9194535d304f181a2a0145e9b3c8a (diff) |
eslint: make use of optional catch binding more often
Diffstat (limited to 'src/data/cacheable-object.js')
-rw-r--r-- | src/data/cacheable-object.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/cacheable-object.js b/src/data/cacheable-object.js index a089e325..651a61cf 100644 --- a/src/data/cacheable-object.js +++ b/src/data/cacheable-object.js @@ -243,13 +243,13 @@ export class CacheableObjectPropertyValueError extends Error { try { inspectOldValue = inspect(oldValue); - } catch (error) { + } catch { inspectOldValue = colors.red(`(couldn't inspect)`); } try { inspectNewValue = inspect(newValue); - } catch (error) { + } catch { inspectNewValue = colors.red(`(couldn't inspect)`); } |