mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
fix: linting errors
Updates created some new complaints Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d00b1c454d
commit
170fea8be0
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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} />
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue