aboutsummaryrefslogtreecommitdiff
path: root/src/nix/doctor.cc
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-17 17:24:02 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-17 17:24:02 -0400
commit0aa79dcc6f4e67891cdd9500ae4ce85e4189a951 (patch)
treeba77166ca10df3569dc3f20c78a78543424fd913 /src/nix/doctor.cc
parent4178f36a1d4005a78a024c60d1f024c6ecccf8e8 (diff)
Remove StoreType abstraction and delegate regStore
to each Store implementation. The generic regStore implementation will only be for the ambiguous shorthands, like "" and "auto". This also could get us close to simplifying the daemon command.
Diffstat (limited to 'src/nix/doctor.cc')
-rw-r--r--src/nix/doctor.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix/doctor.cc b/src/nix/doctor.cc
index 82e92cdd0..683e91446 100644
--- a/src/nix/doctor.cc
+++ b/src/nix/doctor.cc
@@ -49,9 +49,7 @@ struct CmdDoctor : StoreCommand
{
logger->log("Running checks against store uri: " + store->getUri());
- auto type = getStoreType();
-
- if (type < tOther) {
+ if (store.dynamic_pointer_cast<LocalFSStore>()) {
success &= checkNixInPath();
success &= checkProfileRoots(store);
}