diff --git a/lix/libstore/binary-cache-store.cc b/lix/libstore/binary-cache-store.cc index 4cbf9f073..88a3200b2 100644 --- a/lix/libstore/binary-cache-store.cc +++ b/lix/libstore/binary-cache-store.cc @@ -72,13 +72,11 @@ void BinaryCacheStore::upsertFile(const std::string & path, std::optional BinaryCacheStore::getFileContents(const std::string & path) { - StringSink sink; try { return getFile(path)->drain(); } catch (NoSuchBinaryCacheFile &) { return std::nullopt; } - return std::move(sink.s); } std::string BinaryCacheStore::narInfoFileFor(const StorePath & storePath)