chore: don't name unused errors in catch expressions (#2591)

This commit is contained in:
Braden MacDonald
2025-11-12 18:11:22 -05:00
committed by GitHub
parent a5d65abea2
commit e10ab270dd
50 changed files with 110 additions and 110 deletions

View File

@@ -63,7 +63,7 @@ const CollectionMenu = ({ hit } : CollectionMenuProps) => {
onClick: restoreCollection,
},
);
} catch (e) {
} catch {
showToast(intl.formatMessage(messages.deleteCollectionFailed));
} finally {
closeDeleteModal();

View File

@@ -36,7 +36,7 @@ const ComponentDeleter = ({ usageKey, close }: Props) => {
try {
await restoreComponentMutation.mutateAsync({ usageKey });
showToast(intl.formatMessage(messages.undoDeleteComponentToastSuccess));
} catch (e) {
} catch {
showToast(intl.formatMessage(messages.undoDeleteComponentToastFailed));
}
}, []);