Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellockyer committed May 29, 2023
1 parent cdf78bf commit dfbe3ba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/statement.cc
Expand Up @@ -651,8 +651,6 @@ void Statement::Work_Each(napi_env e, void* data) {

STATEMENT_MUTEX(mtx);

int retrieved = 0;

// Make sure that we also reset when there are no parameters.
if (!baton->parameters.size()) {
sqlite3_reset(stmt->_handle);
Expand All @@ -668,7 +666,6 @@ void Statement::Work_Each(napi_env e, void* data) {
GetRow(row.get(), stmt->_handle);
NODE_SQLITE3_MUTEX_LOCK(&async->mutex)
async->data.emplace_back(std::move(row));
retrieved++;
NODE_SQLITE3_MUTEX_UNLOCK(&async->mutex)

uv_async_send(&async->watcher);
Expand Down

0 comments on commit dfbe3ba

Please sign in to comment.