Skip to content

Commit

Permalink
fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jun 21, 2024
1 parent 2aaeaa2 commit 250981a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/libs/antares/study/header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,16 @@ bool StudyHeader::internalLoadFromINIFile(const IniFile& ini, bool warnings)
}
}

if (validateVersion())
{
return true;
}

if (warnings)
{
logs.error() << "Study header: Invalid format";
}

return false;
}

Expand Down
6 changes: 0 additions & 6 deletions src/libs/antares/study/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ bool Study::internalLoadHeader(const String& path)
return false;
}

if (!header.validateVersion())
{
logs.error() << path << ": error with the version, aborting";
return false;
}

// Informations about the study
logs.info();
logs.notice() << "Preparing " << header.caption << "...";
Expand Down

0 comments on commit 250981a

Please sign in to comment.