mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Fix linting errors
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
74b0562fc8
commit
c017df0a3c
24 changed files with 35 additions and 33 deletions
2
src/components/common/cache/cache.ts
vendored
2
src/components/common/cache/cache.ts
vendored
|
@ -40,7 +40,7 @@ export class Cache<K, V> {
|
|||
|
||||
put(key: K, value: V): void {
|
||||
if (this.maxEntries > 0 && this.store.size === this.maxEntries) {
|
||||
this.store.delete(this.store.keys().next().value)
|
||||
this.store.delete(this.store.keys().next().value as K)
|
||||
}
|
||||
this.store.set(key, {
|
||||
entryCreated: Date.now(),
|
||||
|
|
|
@ -30,7 +30,7 @@ export const CopyableField: React.FC<CopyableFieldProps> = ({ content, nativeSha
|
|||
text: content,
|
||||
url: url
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch((error: Error) => {
|
||||
log.error('Native sharing failed', error)
|
||||
})
|
||||
}, [content, url])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue