Skip to content

Commit b98a966

Browse files
Apply suggestions from code review
Co-authored-by: Paolo Tranquilli <[email protected]>
1 parent 7e36f7d commit b98a966

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

swift/xcode-autobuilder/XcodeProjectParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static std::unordered_map<std::string, std::vector<std::string>> collectWorkspac
257257
// Collect all projects not belonging to any workspace into a separate empty bucket
258258
for (auto& path : projectFiles.xcodeFiles) {
259259
if (path.extension() == ".xcodeproj") {
260-
if (projectsBelongingToWorkspace.count(path.string())) {
260+
if (projectsBelongingToWorkspace.contains(path.string())) {
261261
continue;
262262
}
263263
workspaces[std::string()].push_back(path.string());

swift/xcode-autobuilder/xcode-autobuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static bool autobuild(const CLIArgs& args) {
8080
return false;
8181
} else if (!structure.xcodeEncountered && swiftPackages.empty()) {
8282
DIAGNOSE_ERROR(noProjectFound,
83-
"`autobuild` could not detect an Xcode project or workspace or Swift package");
83+
"`autobuild` detected neither an Xcode project or workspace, nor a Swift package");
8484
return false;
8585
} else if (!xcodeTargets.empty()) {
8686
LOG_INFO("Building Xcode target: {}", xcodeTargets.front());

0 commit comments

Comments
 (0)