diff --git a/lib/src/ConfigLoader.cc b/lib/src/ConfigLoader.cc index 5fbec5c8..94e6c749 100644 --- a/lib/src/ConfigLoader.cc +++ b/lib/src/ConfigLoader.cc @@ -85,7 +85,7 @@ static void loadApp(const Json::Value &app) } //file types auto fileTypes=app["file_types"]; - if(fileTypes&&fileTypes.isArray()&&!fileTypes.empty()) + if(fileTypes.isArray()&&!fileTypes.empty()) { std::vector types; for(auto fileType:fileTypes) @@ -106,7 +106,7 @@ static void loadApp(const Json::Value &app) if(enableDynamicViews) { auto viewsPaths=app["dynamic_views_path"]; - if(viewsPaths&&viewsPaths.isArray()&&viewsPaths.size()>0) + if(viewsPaths.isArray()&&viewsPaths.size()>0) { std::vector paths; for(auto viewsPath:viewsPaths) @@ -161,4 +161,4 @@ void ConfigLoader::load() { loadApp(_configJsonRoot["app"]); loadSSL(_configJsonRoot["ssl"]); loadListeners(_configJsonRoot["listeners"]); -} \ No newline at end of file +}