GCancellable *cancellable,
GError **error)
{
- g_return_val_if_fail (!self->parsed, FALSE);
+ g_assert (!self->parsed);
g_autofree char *contents = glnx_file_get_contents_utf8_at (dfd, path, NULL, cancellable, error);
if (!contents)
GCancellable *cancellable,
GError **error)
{
- g_return_val_if_fail (OSTREE_IS_BOOTLOADER (self), FALSE);
+ g_assert (OSTREE_IS_BOOTLOADER (self));
return OSTREE_BOOTLOADER_GET_IFACE (self)->query (self, out_is_active, cancellable, error);
}
const char *
_ostree_bootloader_get_name (OstreeBootloader *self)
{
- g_return_val_if_fail (OSTREE_IS_BOOTLOADER (self), NULL);
+ g_assert (OSTREE_IS_BOOTLOADER (self));
return OSTREE_BOOTLOADER_GET_IFACE (self)->get_name (self);
}
GCancellable *cancellable,
GError **error)
{
- g_return_val_if_fail (OSTREE_IS_BOOTLOADER (self), FALSE);
+ g_assert (OSTREE_IS_BOOTLOADER (self));
return OSTREE_BOOTLOADER_GET_IFACE (self)->write_config (self, bootversion,
new_deployments,
GCancellable *cancellable,
GError **error)
{
- g_return_val_if_fail (OSTREE_IS_BOOTLOADER (self), FALSE);
+ g_assert (OSTREE_IS_BOOTLOADER (self));
if (OSTREE_BOOTLOADER_GET_IFACE (self)->post_bls_sync)
return OSTREE_BOOTLOADER_GET_IFACE (self)->post_bls_sync (self, bootversion, cancellable, error);
gboolean
_ostree_bootloader_is_atomic (OstreeBootloader *self)
{
- g_return_val_if_fail (OSTREE_IS_BOOTLOADER (self), FALSE);
+ g_assert (OSTREE_IS_BOOTLOADER (self));
if (OSTREE_BOOTLOADER_GET_IFACE (self)->is_atomic)
return OSTREE_BOOTLOADER_GET_IFACE (self)->is_atomic (self);