Merge "getFileContents: Remove unused StringSink" into main

This commit is contained in:
rebecca “wiggles” turner
2025-03-18 18:17:22 +00:00
committed by Lix Systems Gerrit
-2
View File
@@ -72,13 +72,11 @@ void BinaryCacheStore::upsertFile(const std::string & path,
std::optional<std::string> 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)