diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-22 14:15:35 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-09-22 14:15:35 +0200 |
commit | d8c10028d96d49b2c783fe279daa91402e8a91da (patch) | |
tree | 3747fc06a677a6a8cb2d1ba1486a34a0f26bf868 /src/libstore/binary-cache-store.cc | |
parent | 8fdb1d057ac72d07b9e8c6e522d4d7f0a8bdf352 (diff) |
Make setDefault() typed
Diffstat (limited to 'src/libstore/binary-cache-store.cc')
-rw-r--r-- | src/libstore/binary-cache-store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index 74eb0a9ab..3a6be541f 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -52,9 +52,9 @@ void BinaryCacheStore::init() throw Error("binary cache '%s' is for Nix stores with prefix '%s', not '%s'", getUri(), value, storeDir); } else if (name == "WantMassQuery") { - wantMassQuery.setDefault(value == "1" ? "true" : "false"); + wantMassQuery.setDefault(value == "1"); } else if (name == "Priority") { - priority.setDefault(fmt("%d", std::stoi(value))); + priority.setDefault(std::stoi(value)); } } } |