diff options
author | regnat <rg@regnat.ovh> | 2021-05-10 17:36:49 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-05-10 17:36:49 +0200 |
commit | ab96c1ee504674ddbb0a09796af87d898e2bf753 (patch) | |
tree | 1927d89a2b3c56aba4cfd1053c9145510741ea98 /src/libstore | |
parent | b66234134fadc720d6c177d62e6ce4c9f4093a89 (diff) |
Remove useless parents
I never remember the exact syntax of the `switch` statement
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index 312630520..df401e6f4 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -454,13 +454,13 @@ std::optional<const Realisation> BinaryCacheStore::queryRealisation(const DrvOut auto [cacheOutcome, maybeCachedRealisation] = diskCache->lookupRealisation(getUri(), id); switch (cacheOutcome) { - case (NarInfoDiskCache::oValid): + case NarInfoDiskCache::oValid: debug("Returning a cached realisation for %s", id.to_string()); return *maybeCachedRealisation; - case (NarInfoDiskCache::oInvalid): + case NarInfoDiskCache::oInvalid: debug("Returning a cached missing realisation for %s", id.to_string()); return {}; - case (NarInfoDiskCache::oUnknown): + case NarInfoDiskCache::oUnknown: break; } } |