Skip to content

Commit 0a1fc87

Browse files
committed
removes ternary usage
1 parent ad0cb7a commit 0a1fc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function connect(settings) {
8181
raw(sql, options = {}) {
8282
const dbApi = options.dbApi || knex;
8383
return dbApi.raw(sql, options)
84-
.then(res => res && res.rows ? res.rows : res);
84+
.then(res => res.rows || res);
8585
}
8686
};
8787
}

0 commit comments

Comments
 (0)