mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 23:03:19 +08:00
refractor(sqlite): optimize code
This commit is contained in:
parent
dd250a6d17
commit
8ab1d13fb3
@ -59,8 +59,7 @@ export class SQLite {
|
|||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
static openDatabase(config: any): Promise<SQLite> {
|
static openDatabase(config: any): Promise<SQLite> {
|
||||||
let db = new SQLite();
|
return new SQLite().openDatabase(config);
|
||||||
return db.openDatabase(config);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user