From 4ff08f942d733ad21c5df299a96cd5883b705b0c Mon Sep 17 00:00:00 2001 From: David Langley Date: Thu, 7 Nov 2024 09:37:40 +0000 Subject: [PATCH] lint --- src/components/views/messages/DateSeparator.tsx | 2 +- .../unit-tests/components/views/messages/DateSeparator-test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/messages/DateSeparator.tsx b/src/components/views/messages/DateSeparator.tsx index e6c7af43ab..272afc1823 100644 --- a/src/components/views/messages/DateSeparator.tsx +++ b/src/components/views/messages/DateSeparator.tsx @@ -117,7 +117,7 @@ export default class DateSeparator extends React.Component { } else { return formatFullDateNoTime(date); } - } catch (e) { + } catch (_) { return _t("common|message_timestamp_invalid"); } } diff --git a/test/unit-tests/components/views/messages/DateSeparator-test.tsx b/test/unit-tests/components/views/messages/DateSeparator-test.tsx index 93687be0e7..ebe3ac42d4 100644 --- a/test/unit-tests/components/views/messages/DateSeparator-test.tsx +++ b/test/unit-tests/components/views/messages/DateSeparator-test.tsx @@ -92,7 +92,7 @@ describe("DateSeparator", () => { }); it("renders invalid date separator correctly", () => { - let ts = new Date(-8640000000000004).getTime(); + const ts = new Date(-8640000000000004).getTime(); const { asFragment } = getComponent({ ts }); expect(asFragment()).toMatchSnapshot(); });