diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-01-22 10:21:12 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-01-22 15:58:58 +0000 |
commit | 53a709535b42197a9abd3fe46406bb186ad6c751 (patch) | |
tree | 5abaf281e32a5c9672e7f12056b5da0aff5c612e /src/build-remote | |
parent | 8c07ed1ddad6595cd679181b0b8d78e09fc6d152 (diff) |
Apply suggestions from code review
Thanks!
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Diffstat (limited to 'src/build-remote')
-rw-r--r-- | src/build-remote/build-remote.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index 350bd6cef..68af3e966 100644 --- a/src/build-remote/build-remote.cc +++ b/src/build-remote/build-remote.cc @@ -75,11 +75,11 @@ static int main_build_remote(int argc, char * * argv) /* It would be more appropriate to use $XDG_RUNTIME_DIR, since that gets cleared on reboot, but it wouldn't work on macOS. */ - currentLoad = "/current-load"; + auto currentLoadName = "/current-load"; if (auto localStore = store.dynamic_pointer_cast<LocalFSStore>()) - currentLoad = std::string { localStore->stateDir } + currentLoad; + currentLoad = std::string { localStore->stateDir } + currentLoadName; else - currentLoad = settings.nixStateDir + currentLoad; + currentLoad = settings.nixStateDir + currentLoadName; std::shared_ptr<Store> sshStore; AutoCloseFD bestSlotLock; |