fix: linting errors

Updates created some new complaints

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2024-08-30 09:44:31 +02:00
parent d00b1c454d
commit 170fea8be0
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ describe('fetch motd', () => {
Mock.of<Response>({
headers: Mock.of<Headers>({
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),

View file

@ -33,5 +33,5 @@ export const ProxyImageFrame: React.FC<React.ImgHTMLAttributes<HTMLImageElement>
// 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 <img src={imageProxyEnabled ? imageUrl : src ?? ''} title={title ?? alt ?? ''} alt={alt} {...props} />
return <img src={imageProxyEnabled ? imageUrl : (src ?? '')} title={title ?? alt ?? ''} alt={alt} {...props} />
}