Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
carstendietrich committed Jul 4, 2023
1 parent 940e56c commit 2b7a91b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ func (m *plugin) MutateConfig(_ *config.Config) error {
}

func (m *plugin) GenerateCode(data *codegen.Data) error {
// Drop directives that can't be resolved, this was needed to ignore the `@defer` directive when generating
for name, _ := range data.AllDirectives {
// Drop directives that can't be resolved, this was needed to ignore the `@defer` directive not used by us
for name := range data.AllDirectives {
if pkg := m.types.directives["@"+name][0]; pkg == "" {
delete(data.AllDirectives, name)
}
Expand Down

0 comments on commit 2b7a91b

Please sign in to comment.