Remove redundant nullptr check. (#6326)

This commit is contained in:
Siarhei Fedartsou
2022-08-25 00:01:56 +02:00
committed by GitHub
parent 91895604c9
commit df3c553f4f
3 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -312,7 +312,7 @@ std::vector<std::pair<bool, boost::filesystem::path>> Storage::GetStaticFiles()
{
if (file.first == IS_REQUIRED && !boost::filesystem::exists(file.second))
{
throw util::exception("Could not find required filed: " + std::get<1>(file).string());
throw util::exception("Could not find required file(s): " + std::get<1>(file).string());
}
}
@@ -337,7 +337,7 @@ std::vector<std::pair<bool, boost::filesystem::path>> Storage::GetUpdatableFiles
{
if (file.first == IS_REQUIRED && !boost::filesystem::exists(file.second))
{
throw util::exception("Could not find required filed: " + std::get<1>(file).string());
throw util::exception("Could not find required file(s): " + std::get<1>(file).string());
}
}