Skip to content

Commit

Permalink
Update plugin/resolvergen/resolver.go
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Cawood <luke.cawood@99designs.com>
  • Loading branch information
mtibben and lwc committed Sep 9, 2021
1 parent de7d19c commit a6c6de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/resolvergen/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (m *Plugin) generatePerSchema(data *codegen.Data) error {
}
}

if _, err := os.Stat(data.Config.Resolver.Filename); os.IsNotExist(errors.Unwrap(err)) {
if _, err := os.Stat(data.Config.Resolver.Filename); errors.Is(err, fs.ErrNotExist) {
err := templates.Render(templates.Options{
PackageName: data.Config.Resolver.Package,
FileNotice: `
Expand Down

0 comments on commit a6c6de6

Please sign in to comment.