lint
This commit is contained in:
parent
0e0a398623
commit
0a84a049ae
2 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,8 @@
|
|||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { ChannelStore, Toasts } from "@webpack/common";
|
||||
import { Logger } from "@utils/Logger";
|
||||
import { ChannelStore, Toasts } from "@webpack/common";
|
||||
import { DBSchema, IDBPDatabase, openDB } from "idb";
|
||||
|
||||
import { LoggedMessageJSON } from "./types";
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ async function withDb<T>(fallback: T, callback: (db: IDBDatabase) => Promise<T>)
|
|||
}
|
||||
|
||||
export async function getPersistentTtsCacheStats(): Promise<{ bytes: number; entries: number; }> {
|
||||
return withDb<{ bytes: number; entries: number }>({ bytes: 0, entries: 0 }, db => new Promise<{ bytes: number; entries: number }>((resolve, reject) => {
|
||||
return withDb<{ bytes: number; entries: number; }>({ bytes: 0, entries: 0 }, db => new Promise<{ bytes: number; entries: number; }>((resolve, reject) => {
|
||||
const tx = db.transaction(META_STORE, "readonly");
|
||||
const store = tx.objectStore(META_STORE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue