mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 06:13:52 +02:00
fix: lint
This commit is contained in:
@@ -3,15 +3,19 @@
|
||||
class SQLiteService {
|
||||
execute(callback, sql, args = null) {
|
||||
return new Promise((resolve, reject) => {
|
||||
SQLite.Execute((err, data) => {
|
||||
if (err !== null) {
|
||||
reject(err);
|
||||
} else if (data === null) {
|
||||
resolve();
|
||||
} else {
|
||||
callback(data);
|
||||
}
|
||||
}, sql, args);
|
||||
SQLite.Execute(
|
||||
(err, data) => {
|
||||
if (err !== null) {
|
||||
reject(err);
|
||||
} else if (data === null) {
|
||||
resolve();
|
||||
} else {
|
||||
callback(data);
|
||||
}
|
||||
},
|
||||
sql,
|
||||
args
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,7 +27,4 @@ class SQLiteService {
|
||||
var self = new SQLiteService();
|
||||
window.sqliteService = self;
|
||||
|
||||
export {
|
||||
self as default,
|
||||
SQLiteService
|
||||
};
|
||||
export {self as default, SQLiteService};
|
||||
|
||||
Reference in New Issue
Block a user