Skip to content

Commit

Permalink
Remove language assert
Browse files Browse the repository at this point in the history
  • Loading branch information
grliszas14 committed Feb 19, 2025
1 parent 238aa97 commit 4ecfe36
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/framework/languages/internal/languagesservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,12 @@ Ret LanguagesService::loadLanguage(Language& lang)
lang.files[resourceName] = useUserPath ? userFilePath : appFilePath;
}

assert([&lang]() {
for (const QString& resourceName : LANGUAGE_RESOURCE_NAMES) {
if (!lang.files.contains(resourceName)) {
LOGE() << "Could not find resource " << resourceName << " for language " << lang.code;
return false;
}
for (const QString& resourceName : LANGUAGE_RESOURCE_NAMES) {
if (!lang.files.contains(resourceName)) {
LOGE() << "Could not find resource " << resourceName << " for language " << lang.code;
return muse::make_ret(muse::Ret::Code::InternalError);
}

return true;
}());
}

return muse::make_ok();
}
Expand Down

0 comments on commit 4ecfe36

Please sign in to comment.