Skip to content

Commit

Permalink
feat(api): generate interface even if no apis
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-maple committed Nov 8, 2023
1 parent ac2fa13 commit d115c89
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/plugins/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ func (Api) generateApi(filename string, typeMap map[*zcore.AnnotatedDecl]zcore.F

api.Handlers = append(api.Handlers, handler)
}

if len(api.Handlers) > 0 {
interfaces = append(interfaces, api)
}
}

if len(interfaces) == 0 {
Expand Down

0 comments on commit d115c89

Please sign in to comment.