mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2025-03-24 08:09:02 +00:00
[Code quality] fix
This commit is contained in:
parent
bb21a7ceb4
commit
33b5c0313c
1 changed files with 4 additions and 2 deletions
|
@ -249,7 +249,7 @@ export class DaemonService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async openDatabase(): Promise<IDBPDatabase<any>> {
|
private async openDatabase(): Promise<IDBPDatabase<any>> {
|
||||||
return await openDB<IDBPDatabase<any>>(this.dbName, 1, {
|
return await openDB<any>(this.dbName, 1, {
|
||||||
upgrade(db) {
|
upgrade(db) {
|
||||||
// Crea un archivio (store) per i settings se non esiste già
|
// Crea un archivio (store) per i settings se non esiste già
|
||||||
if (!db.objectStoreNames.contains('settingsStore')) {
|
if (!db.objectStoreNames.contains('settingsStore')) {
|
||||||
|
@ -371,7 +371,9 @@ export class DaemonService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(error.message);
|
const errorMessage: string = `${error.message}`;
|
||||||
|
|
||||||
|
throw new Error(errorMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
|
Loading…
Reference in a new issue