Remove useless parents
I never remember the exact syntax of the `switch` statement
This commit is contained in:
parent
b66234134f
commit
ab96c1ee50
|
@ -454,13 +454,13 @@ std::optional<const Realisation> BinaryCacheStore::queryRealisation(const DrvOut
|
||||||
auto [cacheOutcome, maybeCachedRealisation] =
|
auto [cacheOutcome, maybeCachedRealisation] =
|
||||||
diskCache->lookupRealisation(getUri(), id);
|
diskCache->lookupRealisation(getUri(), id);
|
||||||
switch (cacheOutcome) {
|
switch (cacheOutcome) {
|
||||||
case (NarInfoDiskCache::oValid):
|
case NarInfoDiskCache::oValid:
|
||||||
debug("Returning a cached realisation for %s", id.to_string());
|
debug("Returning a cached realisation for %s", id.to_string());
|
||||||
return *maybeCachedRealisation;
|
return *maybeCachedRealisation;
|
||||||
case (NarInfoDiskCache::oInvalid):
|
case NarInfoDiskCache::oInvalid:
|
||||||
debug("Returning a cached missing realisation for %s", id.to_string());
|
debug("Returning a cached missing realisation for %s", id.to_string());
|
||||||
return {};
|
return {};
|
||||||
case (NarInfoDiskCache::oUnknown):
|
case NarInfoDiskCache::oUnknown:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue