aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/remote-store.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-04 22:36:31 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-04 22:36:31 +0000
commit16c98bf57c52dee59c06e0e8911800943a468962 (patch)
tree4405c3b605f77339ba4b2eddf38670df7a1bb402 /src/libstore/remote-store.cc
parent1dfcbebc95f1c74763770bb2bd7afdebe8804845 (diff)
Get rid of some unneeded temporaries
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r--src/libstore/remote-store.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc
index 772979066..63c19a450 100644
--- a/src/libstore/remote-store.cc
+++ b/src/libstore/remote-store.cc
@@ -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);
}