[go: nahoru, domu]

Skip to content

Commit

Permalink
fix(kitex tool): import unused protection when -module is not set (#1412
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DMwangnima committed Jun 24, 2024
1 parent 22991e2 commit 1b9e269
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool/internal_pkg/pluginmode/thriftgo/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ func Run() int {
protocol: conv.Config.Protocol,
handlerReturnKeepResp: conv.Config.HandlerReturnKeepResp,
}
// for cmd without setting -module
if p.module == "" {
p.module = conv.Config.PackagePrefix
}
patches, err := p.patch(req)
if err != nil {
return conv.fail(fmt.Errorf("patch: %w", err))
Expand Down

0 comments on commit 1b9e269

Please sign in to comment.