Skip to content

Commit

Permalink
Update plugin/servergen/server.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 authored Sep 9, 2021
1 parent a6c6de6 commit d747387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/servergen/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (m *Plugin) GenerateCode(data *codegen.Data) error {
ResolverPackageName: data.Config.Resolver.ImportPath(),
}

if _, err := os.Stat(m.filename); os.IsNotExist(errors.Unwrap(err)) {
if _, err := os.Stat(m.filename); errors.Is(err, fs.ErrNotExist) {
return templates.Render(templates.Options{
PackageName: "main",
Filename: m.filename,
Expand Down

0 comments on commit d747387

Please sign in to comment.