File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 6
6
#include " nix/util/abstract-setting-to-json.hh"
7
7
#include " nix/util/compute-levels.hh"
8
8
#include " nix/util/signals.hh"
9
- #include " nix/util/types.hh"
10
9
11
10
#include < algorithm>
12
11
#include < map>
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ struct OptimiseStats
34
34
uint64_t bytesFreed = 0 ;
35
35
};
36
36
37
- struct LocalBuildStoreConfig : virtual LocalFSStoreConfig {
37
+ struct LocalBuildStoreConfig : virtual LocalFSStoreConfig
38
+ {
38
39
39
40
private:
40
41
/* *
Original file line number Diff line number Diff line change @@ -79,14 +79,12 @@ std::string LocalStoreConfig::doc()
79
79
80
80
Path LocalBuildStoreConfig::getBuildDir () const
81
81
{
82
- if (settings.buildDir .get ().has_value ()) {
83
- return *settings.buildDir .get ();
84
- }
85
- if (buildDir.get ().has_value ()) {
86
- return *buildDir.get ();
87
- }
88
-
89
- return stateDir.get () + " /builds" ;
82
+ return
83
+ settings.buildDir .get ().has_value ()
84
+ ? *settings.buildDir .get ()
85
+ : buildDir.get ().has_value ()
86
+ ? *buildDir.get ()
87
+ : stateDir.get () + " /builds" ;
90
88
}
91
89
92
90
ref<Store> LocalStore::Config::openStore () const
You can’t perform that action at this time.
0 commit comments