Skip to content
Snippets Groups Projects
Commit e8e6c63a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

simplify

parent 3c7e5e4c
No related branches found
No related tags found
No related merge requests found
......@@ -98,8 +98,8 @@ void NFileIn::Load_08( ifstream& FS, string flong )
if(!doc.FindValue("Meta"))
throw "no Meta";
try {
YAML::NodeType::value Metatype = doc["Meta"].Type();
if ( Metatype != YAML::NodeType::Map && doc["Meta"].size() > 0)
if ( doc["Meta"].Type() != YAML::NodeType::Map &&
doc["Meta"].size() > 0)
throw "Meta is not a MAP type";
if(!doc["Meta"].FindValue("format"))
throw "no format in Meta";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment