Fix some TODOs

This commit is contained in:
badaix 2020-06-01 11:47:28 +02:00
parent 775fd21f32
commit fce34d82c8
3 changed files with 14 additions and 9 deletions

View file

@ -90,7 +90,7 @@ void Config::init(const std::string& root_directory, const std::string& user, co
try
{
ifstream ifs(filename_, std::ifstream::in);
if ((ifs.good()) && (ifs.peek() != std::ifstream::traits_type::eof()))
if (ifs.good() && (ifs.peek() != std::ifstream::traits_type::eof()))
{
json j;
ifs >> j;
@ -101,8 +101,8 @@ void Config::init(const std::string& root_directory, const std::string& user, co
{
GroupPtr group = make_shared<Group>();
group->fromJson(jGroup);
// if (client->id.empty() || getClientInfo(client->id))
// continue;
// if (client->id.empty() || getClientInfo(client->id))
// continue;
groups.push_back(group);
}
}