Skip to content

Commit

Permalink
fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-modelist-dev committed May 31, 2018
1 parent 339fde5 commit 39d8533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keychain_lib/include/keychain_lib/keychain_commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,13 @@ struct keychain_command<CMD_LIST>: keychain_command_base {
auto first = bfs::directory_iterator(bfs::path("./"));
std::for_each(first, bfs::directory_iterator(), [&keyname_list](bfs::directory_entry &unit){
if (!bfs::is_regular_file(unit.status()))
return false;
return;
const auto &file_path = unit.path().filename();

auto j_keyfile = open_keyfile(file_path.c_str());
auto keyfile = j_keyfile.as<keyfile_format::keyfile_t>();
keyname_list.push_back(fc::variant(std::move(keyfile.keyname)));
return;
});
send_response(keyname_list, id);
}
Expand Down

0 comments on commit 39d8533

Please sign in to comment.