refactor
This commit is contained in:
parent
f750a52f75
commit
7fb2889c74
@ -38,11 +38,10 @@
|
||||
|
||||
namespace {
|
||||
[[nodiscard]] auto get_bucket(const repertory::sia_config &cfg) -> std::string {
|
||||
repertory::utils::string::trim(cfg.bucket);
|
||||
if (cfg.bucket.empty()) {
|
||||
if (bucket.empty()) {
|
||||
return "default";
|
||||
}
|
||||
return cfg.bucket;
|
||||
return bucket;
|
||||
}
|
||||
|
||||
[[nodiscard]] auto get_last_modified(const nlohmann::json &obj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user