Skip to content

Commit 8a003f1

Browse files
committed
Add warning
1 parent 200153b commit 8a003f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/App/Commands/Analyze.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ extension Analyze {
481481
delta: VersionDelta) async throws {
482482
// Preserve existing default branch doc archives to prevent a documentation gap
483483
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2288
484+
#warning("Add check for exactly one branch version.")
484485
if let oldDefaultBranchDocArchives = delta.toDelete.first(where: { $0.isBranch })?.docArchives,
485486
let newDefaultBranch = delta.toAdd.first(where: { $0.isBranch} ) {
486487
newDefaultBranch.docArchives = oldDefaultBranchDocArchives

0 commit comments

Comments
 (0)