Skip to content

Commit

Permalink
fix(gazelle): empty list (#2099)
Browse files Browse the repository at this point in the history
This is a code error (from typo).
  • Loading branch information
hunshcn authored Dec 4, 2024
1 parent 5eb139f commit 60da4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gazelle/python/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes
build()

if pyLibrary.IsEmpty(py.Kinds()[pyLibrary.Kind()]) {
result.Empty = append(result.Gen, pyLibrary)
result.Empty = append(result.Empty, pyLibrary)
} else {
result.Gen = append(result.Gen, pyLibrary)
result.Imports = append(result.Imports, pyLibrary.PrivateAttr(config.GazelleImportsKey))
Expand Down

0 comments on commit 60da4a3

Please sign in to comment.