mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-03 05:18:24 +03:00
Merge pull request #3020 from cgwalters/less-return-if-fail-1
mutable-tree: Change some `g_return_if_fail` to `g_assert()`
This commit is contained in:
commit
03a198888f
@ -490,9 +490,9 @@ ostree_mutable_tree_fill_empty_from_dirtree (OstreeMutableTree *self, OstreeRepo
|
||||
const char *contents_checksum,
|
||||
const char *metadata_checksum)
|
||||
{
|
||||
g_return_val_if_fail (repo, FALSE);
|
||||
g_return_val_if_fail (contents_checksum, FALSE);
|
||||
g_return_val_if_fail (metadata_checksum, FALSE);
|
||||
g_assert (repo);
|
||||
g_assert (contents_checksum);
|
||||
g_assert (metadata_checksum);
|
||||
|
||||
switch (self->state)
|
||||
{
|
||||
@ -547,7 +547,7 @@ gboolean
|
||||
ostree_mutable_tree_walk (OstreeMutableTree *self, GPtrArray *split_path, guint start,
|
||||
OstreeMutableTree **out_subdir, GError **error)
|
||||
{
|
||||
g_return_val_if_fail (start < split_path->len, FALSE);
|
||||
g_assert_cmpuint (start, <, split_path->len);
|
||||
|
||||
if (start == split_path->len - 1)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user