refractor(sqlite): optimize code

This commit is contained in:
Ibby Hadeed 2016-12-04 11:50:59 -05:00
parent dd250a6d17
commit 8ab1d13fb3

View File

@ -59,8 +59,7 @@ export class SQLite {
constructor() { }
static openDatabase(config: any): Promise<SQLite> {
let db = new SQLite();
return db.openDatabase(config);
return new SQLite().openDatabase(config);
}