core/unit: use UNIT_IS_INACTIVE_OR_FAILED at one more place

This commit is contained in:
Mike Yuan
2024-04-19 10:08:35 +08:00
parent 2ca6bd9b77
commit fcd7aef724
+1 -1
View File
@@ -467,7 +467,7 @@ bool unit_may_gc(Unit *u) {
break;
case COLLECT_INACTIVE_OR_FAILED:
if (!IN_SET(state, UNIT_INACTIVE, UNIT_FAILED))
if (!UNIT_IS_INACTIVE_OR_FAILED(state))
return false;
break;