Skip to content

Commit

Permalink
Address code review
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jul 23, 2023
1 parent 7a1590e commit ae3e1e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modules/_dbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ _dbm_dbm_clear_impl(dbmobject *self, PyTypeObject *cls)
PyErr_SetString(state->dbm_error, "cannot delete item from database");
return NULL;
}
}
if (self->di_size > 0) {
self->di_size = 0;
if (self->di_size > 0) {
self->di_size--;
}
}
Py_RETURN_NONE;
}
Expand Down

0 comments on commit ae3e1e5

Please sign in to comment.