obey the lint

This commit is contained in:
Vadim Khotilovich 2016-04-26 22:11:19 -05:00
parent 3e0732dea9
commit 811c6ef58b

View File

@ -35,8 +35,7 @@ class Booster {
auto it = std::find_if(cfg_.begin(), cfg_.end(),
[&name](decltype(*cfg_.begin()) &x) {
return x.first == name;
}
);
});
if (it == cfg_.end()) {
cfg_.push_back(std::make_pair(name, val));
} else {