Skip to content

Commit fd8bc1e

Browse files
author
suraj-jadhav
committed
Error: Lint issues
1 parent 3b8947f commit fd8bc1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/resolution/file/file_batch_factory.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ func (bf *BatchFactory) processFile(file string, batchMap map[string]IBatch) {
6969
func (bf *BatchFactory) shouldProcessManifest(manifest, base, file string, p pm.IPm) bool {
7070
if manifest == "pyproject.toml" && strings.EqualFold(base, "pyproject.toml") {
7171
pmName := detectPyprojectPm(file)
72+
7273
return pmName == p.Name()
7374
}
75+
7476
return true
7577
}
7678

@@ -116,17 +118,21 @@ func detectPyprojectPm(pyprojectPath string) string {
116118

117119
if hasPoetry && hasProject {
118120
// Ambiguous: both Poetry and UV indicators present
121+
119122
return ""
120123
}
121124
if hasPoetry {
125+
122126
return poetry.Name
123127
}
124128
if hasProject {
129+
125130
return uv.Name
126131
}
127132
}
128133

129134
// If no indicators found, cannot determine PM
135+
130136
return ""
131137
}
132138

0 commit comments

Comments
 (0)