aboutsummaryrefslogtreecommitdiff
path: root/src/nix/doctor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/doctor.cc')
-rw-r--r--src/nix/doctor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/doctor.cc b/src/nix/doctor.cc
index 1aa6831d3..531f0ad86 100644
--- a/src/nix/doctor.cc
+++ b/src/nix/doctor.cc
@@ -101,7 +101,7 @@ struct CmdDoctor : StoreCommand
try {
Path userEnv = canonPath(profileDir, true);
- if (store->isStorePath(userEnv) && hasSuffix(userEnv, "user-environment")) {
+ if (store->isStorePath(userEnv) && userEnv.ends_with("user-environment")) {
while (profileDir.find("/profiles/") == std::string::npos && isLink(profileDir))
profileDir = absPath(readLink(profileDir), dirOf(profileDir));