\#10 Address compiler warnings

This commit is contained in:
2023-10-30 10:54:35 -05:00
parent b137b57dbc
commit 8cf19e0594
5 changed files with 22 additions and 31 deletions

View File

@ -113,8 +113,8 @@ public:
const get_name_callback &get_name,
const get_token_callback &get_token, api_file &file) {
auto f = std::find_if(list.begin(), list.end(),
[&api_path](const auto &f) -> bool {
return f.api_path == api_path;
[&api_path](const auto &file) -> bool {
return file.api_path == api_path;
});
if (f == list.end()) {
return api_error::item_not_found;