Skip to content

Commit

Permalink
nix3-profile: remove check "name" attr in manifests
Browse files Browse the repository at this point in the history
It doesn't seem to have ever been used.

Based off of commit a748e88

Upstream-PR: NixOS/nix#9656
Change-Id: Idcf250a645fa43f2ef11fb15b503b070a62a917e
  • Loading branch information
Qyriad committed May 2, 2024
1 parent 84e34e9 commit f94169d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libcmd/cmd-profiles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ ProfileManifest::ProfileManifest(EvalState & state, const Path & profile)
std::string name =
elems.is_object()
? elem.key()
: e.contains("name")
? static_cast<std::string>(e["name"])
: element.source
? getNameFromURL(parseURL(element.source->to_string())).value_or(element.identifier())
: element.identifier();
Expand Down

0 comments on commit f94169d

Please sign in to comment.