From ab96c1ee504674ddbb0a09796af87d898e2bf753 Mon Sep 17 00:00:00 2001 From: regnat Date: Mon, 10 May 2021 17:36:49 +0200 Subject: Remove useless parents I never remember the exact syntax of the `switch` statement --- src/libstore/binary-cache-store.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstore/binary-cache-store.cc') 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 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; } } -- cgit v1.2.3