Replace some if conditionals with asserts where appropiate.
--HG-- extra : convert_revision : 991989e77b31d84f9aab2e27a5366c18a78407ae
This commit is contained in:
parent
d3b02d6c95
commit
5722c8aca1
6 changed files with 53 additions and 86 deletions
|
@ -69,8 +69,7 @@ usage(void)
|
|||
static bool
|
||||
pkgindex_getinfo(prop_dictionary_t dict, repo_info_t *ri)
|
||||
{
|
||||
if (dict == NULL || ri == NULL)
|
||||
return false;
|
||||
assert(dict != NULL || ri != NULL);
|
||||
|
||||
if (!prop_dictionary_get_cstring_nocopy(dict,
|
||||
"pkgindex-version", &ri->index_version))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue