Drop the unreachable nameless-dependency check in the walk

normalize_dependencies guarantees every entry carries a non-empty
string name, so only the version can be absent.
This commit is contained in:
J. Nick Koston
2026-08-22 14:49:39 -05:00
parent 121795fa8d
commit 3b091676bf
+1 -1
View File
@@ -1076,7 +1076,7 @@ def convert_libraries(
for dependency in normalize_dependencies(
component.data.get("dependencies"), component.name
):
if "name" not in dependency or "version" not in dependency:
if "version" not in dependency:
continue
if not dependency_is_usable(
dependency, backend.platform, backend.framework, component.name