Skip to content

Commit

Permalink
remove doubled return
Browse files Browse the repository at this point in the history
  • Loading branch information
MyreMylar authored Dec 31, 2024
1 parent 614e954 commit 2f1eb8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_c/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -2260,13 +2260,13 @@ pg_event_peek(PyObject *self, PyObject *args, PyObject *kwargs)

seq = _pg_eventtype_as_seq(obj, &len);
if (!seq)
return Py_RETURN_FALSE;
Py_RETURN_FALSE;

for (loop = 0; loop < len; loop++) {
type = _pg_eventtype_from_seq(seq, loop);
if (type == -1) {
Py_DECREF(seq);
return Py_RETURN_FALSE;
Py_RETURN_FALSE;
}
res = PG_PEEP_EVENT(&event, 1, SDL_PEEKEVENT, type);
if (res) {
Expand Down

0 comments on commit 2f1eb8b

Please sign in to comment.