From 2f1eb8bbb5c771dd2cdf5f776f9dd2d1c9c31fe7 Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Tue, 31 Dec 2024 16:20:48 +0000 Subject: [PATCH] remove doubled return --- src_c/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_c/event.c b/src_c/event.c index 5ed8ca637f..163d13b242 100644 --- a/src_c/event.c +++ b/src_c/event.c @@ -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) {