core/editor: Replace g_return_* with g_assert

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/671>
This commit is contained in:
mindonwarp
2026-01-21 19:37:53 +00:00
committed by Marge Bot
parent ba3ca061ce
commit 0149b7a042
6 changed files with 25 additions and 29 deletions
@@ -214,7 +214,7 @@ gcal_event_editor_section_init_iface (GcalEventEditorSectionInterface *iface)
static guint
gcal_attendees_section_get_num_participants (GcalAttendeesSection *self)
{
g_return_val_if_fail (GCAL_IS_ATTENDEES_SECTION (self), 0);
g_assert (GCAL_IS_ATTENDEES_SECTION (self));
return self->num_accepted + self->num_declined + self->num_tentative + self->num_delegated + self->num_not_responded;
}