Skip to content

Commit

Permalink
fix: close go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 18, 2024
1 parent 04e9025 commit 6f12952
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/internal/openapi/v3/codegen/server/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func GenSvcGo(dir string, docPath string) {
if modf, err = os.Open(modfile); err != nil {
panic(err)
}
defer modf.Close()
reader := bufio.NewReader(modf)
firstLine, _ := reader.ReadString('\n')
modName := strings.TrimSpace(strings.TrimPrefix(firstLine, "module"))
Expand Down

0 comments on commit 6f12952

Please sign in to comment.