Apply suggestions from code review

Co-authored-by: Paolo Tranquilli <redsun82@github.com>
This commit is contained in:
AlexDenisov
2023-08-22 09:57:25 +02:00
committed by GitHub
parent 7e36f7dcaf
commit b98a966729
2 changed files with 2 additions and 2 deletions

View File

@@ -257,7 +257,7 @@ static std::unordered_map<std::string, std::vector<std::string>> collectWorkspac
// Collect all projects not belonging to any workspace into a separate empty bucket
for (auto& path : projectFiles.xcodeFiles) {
if (path.extension() == ".xcodeproj") {
if (projectsBelongingToWorkspace.count(path.string())) {
if (projectsBelongingToWorkspace.contains(path.string())) {
continue;
}
workspaces[std::string()].push_back(path.string());

View File

@@ -80,7 +80,7 @@ static bool autobuild(const CLIArgs& args) {
return false;
} else if (!structure.xcodeEncountered && swiftPackages.empty()) {
DIAGNOSE_ERROR(noProjectFound,
"`autobuild` could not detect an Xcode project or workspace or Swift package");
"`autobuild` detected neither an Xcode project or workspace, nor a Swift package");
return false;
} else if (!xcodeTargets.empty()) {
LOG_INFO("Building Xcode target: {}", xcodeTargets.front());