1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Rename Derivation::pathOpt to Derivation::path

We no longer need the `*Opt` to disambiguate.
This commit is contained in:
John Ericson 2020-09-15 15:21:39 +00:00
parent 6387550d58
commit 3a5cdd737c
5 changed files with 7 additions and 7 deletions

View file

@ -40,7 +40,7 @@ DrvInfo::DrvInfo(EvalState & state, ref<Store> store, const std::string & drvPat
throw Error("derivation '%s' does not have output '%s'", store->printStorePath(drvPath), outputName);
auto & [outputName, output] = *i;
auto optStorePath = output.pathOpt(*store, drv.name, outputName);
auto optStorePath = output.path(*store, drv.name, outputName);
if (optStorePath)
outPath = store->printStorePath(*optStorePath);
}