Get rid of some unneeded temporaries

This commit is contained in:
John Ericson 2020-08-04 22:36:31 +00:00
parent 1dfcbebc95
commit 16c98bf57c

View file

@ -60,14 +60,12 @@ void writeStorePathCAMap(const Store & store, Sink & out, const StorePathCAMap &
StorePath read(const Store & store, Source & from, Proxy<StorePath> _)
{
auto path = readString(from);
return store.parseStorePath(path);
return store.parseStorePath(readString(from));
}
void write(const Store & store, Sink & out, const StorePath & storePath)
{
auto path = store.printStorePath(storePath);
out << path;
out << store.printStorePath(storePath);
}