nix profile: Remove check for "name" attribute in manifests

AFAIK, we've never emitted this attribute.
This commit is contained in:
Eelco Dolstra 2023-12-22 16:27:31 +01:00
parent 6268a45b65
commit a748e88bf4

View file

@ -155,8 +155,6 @@ struct ProfileManifest
std::string name = std::string name =
elems.is_object() elems.is_object()
? elem.key() ? elem.key()
: e.contains("name")
? (std::string) e["name"]
: element.source : element.source
? getNameFromURL(parseURL(element.source->to_string())).value_or(element.identifier()) ? getNameFromURL(parseURL(element.source->to_string())).value_or(element.identifier())
: element.identifier(); : element.identifier();