Fix early initialization of _schema attribute.
This commit is contained in:
@@ -105,7 +105,6 @@ MBTiles.prototype._exists = function(table, callback) {
|
||||
if (this._schema) {
|
||||
return callback(null, _(this._schema).include(table));
|
||||
} else {
|
||||
this._schema = [];
|
||||
this._db.all(
|
||||
'SELECT name FROM sqlite_master WHERE type IN (?, ?)',
|
||||
'table',
|
||||
|
||||
Reference in New Issue
Block a user