libexpr: unify strings and paths
paths already are just strings with slightly magic semantics. the type can mirror that at no perf cost, letting us drop one internalType tag. Change-Id: I98acaa4fe3bedd28fc0841e1b81184d8dcddacc5
This commit is contained in:
@@ -112,7 +112,7 @@ namespace nix {
|
||||
if (arg.type() != nPath) {
|
||||
*result_listener << "Expected a path got " << arg.type();
|
||||
return false;
|
||||
} else if (std::string_view(arg._path) != p) {
|
||||
} else if (std::string_view(arg.string().content) != p) {
|
||||
*result_listener << "Expected a path that equals \"" << p
|
||||
<< "\" but got: " << arg.path();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user