Skip to content

Commit

Permalink
fix(build): close pkg/apiclient/_.secondary.swagger.json (#12942)
Browse files Browse the repository at this point in the history
Signed-off-by: guangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed Apr 16, 2024
1 parent f80b9e8 commit f0a867b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/api/swagger/secondaryswaggergen.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func secondarySwaggerGen() {
if err != nil {
panic(err)
}
defer f.Close()
e := json.NewEncoder(f)
e.SetIndent("", " ")
err = e.Encode(swagger)
Expand Down

0 comments on commit f0a867b

Please sign in to comment.