Skip to content

Commit

Permalink
Revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Nov 14, 2022
1 parent 41f81a8 commit 071bd12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simplejson/_speedups.c
Expand Up @@ -2805,7 +2805,8 @@ encoder_listencode_obj(PyEncoderObject *s, JSON_Accu *rval, PyObject *obj, Py_ss
PyObject *newobj;
if (obj == Py_None || obj == Py_True || obj == Py_False) {
PyObject *cstr = _encoded_const(obj);
return cstr != NULL ? _steal_accumulate(rval, cstr) : -1;
if (cstr != NULL)
_steal_accumulate(rval, cstr);
}
else if ((PyBytes_Check(obj) && s->encoding != NULL) ||
PyUnicode_Check(obj))
Expand Down

0 comments on commit 071bd12

Please sign in to comment.