Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lang committed Sep 4, 2017
1 parent 14e5603 commit f58bc26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/driver/cordova-sqlite/CordovaSqliteDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ declare var window: Window;
export class CordovaSqliteDriver extends SqliteDriver {
protected createDatabaseConnection() {
return new Promise<void>((ok, fail) => {
this.sqlite.openDatabase({name: this.options.database, location: 'default'}, (db: any) => {
this.sqlite.openDatabase({name: this.options.database, location: "default"}, (db: any) => {
const databaseConnection = db;
ok(databaseConnection);
}, (error: any) => {
Expand Down
4 changes: 2 additions & 2 deletions src/driver/cordova-sqlite/CordovaSqliteQueryRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export class CordovaSqliteQueryRunner extends SqliteQueryRunner {
if (maxQueryExecutionTime && queryExecutionTime > maxQueryExecutionTime)
this.driver.connection.logger.logQuerySlow(queryExecutionTime, query, parameters, this);

if(result.rows.length === 0) {
if (result.rows.length === 0) {
ok([]);
}

let resultSet = [];
for(let i = 0; i < result.rows.length; i++) {
for (let i = 0; i < result.rows.length; i++) {
resultSet.push(result.rows.item(i));
}

Expand Down

0 comments on commit f58bc26

Please sign in to comment.