obey the lint
This commit is contained in:
parent
3e0732dea9
commit
811c6ef58b
@ -35,8 +35,7 @@ class Booster {
|
|||||||
auto it = std::find_if(cfg_.begin(), cfg_.end(),
|
auto it = std::find_if(cfg_.begin(), cfg_.end(),
|
||||||
[&name](decltype(*cfg_.begin()) &x) {
|
[&name](decltype(*cfg_.begin()) &x) {
|
||||||
return x.first == name;
|
return x.first == name;
|
||||||
}
|
});
|
||||||
);
|
|
||||||
if (it == cfg_.end()) {
|
if (it == cfg_.end()) {
|
||||||
cfg_.push_back(std::make_pair(name, val));
|
cfg_.push_back(std::make_pair(name, val));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user