Skip to content

Commit ff06f12

Browse files
committed
fix confusing console output
1 parent 1f3b725 commit ff06f12

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Sources/SymbolGraphBuilder/SSGC.PackageGraph.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,13 @@ extension SSGC.PackageGraph
132132

133133
self.createEdges(from: sinkManifest, as: id)
134134

135-
print("""
136-
Note: the following packages were never used in any documentation-bearing product:
137-
""")
138-
135+
if !self.packagesUnused.isEmpty
136+
{
137+
print("""
138+
Note: \
139+
the following packages were never used in any documentation-bearing product:
140+
""")
141+
}
139142
for (i, package):(Int, Symbol.Package) in self.packagesUnused.sorted().enumerated()
140143
{
141144
print("\(i + 1). \(package)")

0 commit comments

Comments
 (0)