From d9e20328c04f3b77c77422d44767c028656678ef Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 11 Sep 2023 02:16:00 +0200 Subject: Return the right status on loading success. --- plugins/pychrysalide/gtkext/displaypanel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/pychrysalide/gtkext/displaypanel.c b/plugins/pychrysalide/gtkext/displaypanel.c index b2eb038..a871af9 100644 --- a/plugins/pychrysalide/gtkext/displaypanel.c +++ b/plugins/pychrysalide/gtkext/displaypanel.c @@ -98,13 +98,10 @@ PyTypeObject *get_python_display_panel_type(void) bool ensure_python_display_panel_is_registered(void) { - bool result; /* Bilan à retourner */ PyTypeObject *type; /* Type Python 'DisplayPanel' */ PyObject *module; /* Module à recompléter */ PyObject *dict; /* Dictionnaire du module */ - result = false; - type = get_python_display_panel_type(); if (!PyType_HasFeature(type, Py_TPFLAGS_READY)) @@ -118,6 +115,6 @@ bool ensure_python_display_panel_is_registered(void) } - return result; + return true; } -- cgit v0.11.2-87-g4458