Fixes #398.
This commit is contained in:
Eelco Dolstra
2016-11-09 19:15:13 +01:00
parent e2a012de8c
commit cb5e438a08
3 changed files with 7 additions and 9 deletions

View File

@ -799,11 +799,9 @@ void State::run(BuildID buildOne)
localStore = openStore();
if (hydraConfig["store_uri"] == "") {
_destStore = localStore;
} else {
_destStore = openStoreAt(hydraConfig["store_uri"]);
}
_destStore = hydraConfig["store_uri"] == ""
? localStore
: openStore(hydraConfig["store_uri"]);
auto isTrue = [](const std::string & s) {
return s == "1" || s == "true";