Skip to content

Commit

Permalink
Do not return nil instead of empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
zdevaty committed Aug 22, 2024
1 parent 2c92c7a commit 179e2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiservices/api_configuration_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *ConfigurationAPIService) GeneratorsGet(ctx context.Context) (apiserver.
if err != nil {
return apiserver.ImplResponse{Code: http.StatusInternalServerError}, err
}
var generators []apiserver.Generator
generators := make([]apiserver.Generator, 0, len(appGenerators))
for _, appGenerator := range appGenerators {
generators = append(generators, toAPIGenerator(appGenerator))
}
Expand Down

0 comments on commit 179e2b2

Please sign in to comment.