Skip to content

Commit 56986a0

Browse files
committed
Remove the default value [] for the params argument in runQueryAsync
クエリに?が含まれていない場合、パラメータを指定する必要はないため
1 parent 233099e commit 56986a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

03.asynchronous/sqlite_utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function runQueryAsync(db, query, params = []) {
1+
export function runQueryAsync(db, query, params) {
22
return new Promise((resolve, reject) => {
33
db.run(query, params, function (err) {
44
if (err) {

0 commit comments

Comments
 (0)