We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e2c35 commit e423315Copy full SHA for e423315
Sources/TSCUtility/PkgConfig.swift
@@ -174,9 +174,7 @@ public struct PkgConfig {
174
var libs = [String]()
175
176
for dep in dependencies {
177
- let firstOccurrence = loadingContext.pkgConfigStack.firstIndex(of: dep)
178
-
179
- if let index = firstOccurrence {
+ if let index = loadingContext.pkgConfigStack.firstIndex(of: dep) {
180
diagnostics.emit(warning: "circular dependency detected while parsing \(loadingContext.pkgConfigStack[0]): \(loadingContext.pkgConfigStack[index..<loadingContext.pkgConfigStack.count].joined(separator: " -> ")) -> \(dep)")
181
continue
182
}
0 commit comments