Skip to content

Commit 60da4a3

Browse files
authored
fix(gazelle): empty list (#2099)
This is a code error (from typo).
1 parent 5eb139f commit 60da4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gazelle/python/generate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes
309309
build()
310310

311311
if pyLibrary.IsEmpty(py.Kinds()[pyLibrary.Kind()]) {
312-
result.Empty = append(result.Gen, pyLibrary)
312+
result.Empty = append(result.Empty, pyLibrary)
313313
} else {
314314
result.Gen = append(result.Gen, pyLibrary)
315315
result.Imports = append(result.Imports, pyLibrary.PrivateAttr(config.GazelleImportsKey))

0 commit comments

Comments
 (0)