Minor optimization: no need to check if obj is NULL, prop_object_type() does that already.
This commit is contained in:
@@ -344,7 +344,7 @@ xbps_transaction_sort(struct xbps_handle *xhp)
|
||||
* it doesn't matter.
|
||||
*/
|
||||
rundeps = prop_dictionary_get(obj, "run_depends");
|
||||
if (rundeps == NULL || prop_array_count(rundeps) == 0) {
|
||||
if (prop_array_count(rundeps) == 0) {
|
||||
xbps_dbg_printf_append(xhp, "\n");
|
||||
cnt++;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user