From 170fea8be035b103821994d909340aca05b5be53 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Fri, 30 Aug 2024 09:44:31 +0200 Subject: [PATCH] fix: linting errors Updates created some new complaints Signed-off-by: Philip Molares --- .../src/components/global-dialogs/motd-modal/fetch-motd.spec.ts | 2 +- .../markdown-renderer/extensions/image/proxy-image-frame.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/global-dialogs/motd-modal/fetch-motd.spec.ts b/frontend/src/components/global-dialogs/motd-modal/fetch-motd.spec.ts index dc39fe9c6..522baa93c 100644 --- a/frontend/src/components/global-dialogs/motd-modal/fetch-motd.spec.ts +++ b/frontend/src/components/global-dialogs/motd-modal/fetch-motd.spec.ts @@ -34,7 +34,7 @@ describe('fetch motd', () => { Mock.of({ headers: Mock.of({ get: (name: string) => { - return name === 'Last-Modified' ? lastModified : name === 'etag' ? etag ?? null : null + return name === 'Last-Modified' ? lastModified : name === 'etag' ? (etag ?? null) : null } }), text: () => Promise.resolve(responseText), diff --git a/frontend/src/components/markdown-renderer/extensions/image/proxy-image-frame.tsx b/frontend/src/components/markdown-renderer/extensions/image/proxy-image-frame.tsx index 37b6ed1bd..6a39f1da8 100644 --- a/frontend/src/components/markdown-renderer/extensions/image/proxy-image-frame.tsx +++ b/frontend/src/components/markdown-renderer/extensions/image/proxy-image-frame.tsx @@ -33,5 +33,5 @@ export const ProxyImageFrame: React.FC // The next image processor works with a whitelist of origins. Therefore, we can't use it for general images. // eslint-disable-next-line @next/next/no-img-element - return + return }