Skip to content

Commit

Permalink
Fix async fn expected no return value
Browse files Browse the repository at this point in the history
  • Loading branch information
timursevimli committed Jul 8, 2023
1 parent b272c97 commit ede3be8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ class Database {
async scalar(table, field, ...conditions) {
const row = await this.row(table, [field], ...conditions);
const values = Object.values(row);
if (values.length < 1) return undefined;
return values[0];
}

Expand Down

0 comments on commit ede3be8

Please sign in to comment.