mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-12 13:22:55 +02:00
add trailing newline when generating swagger group routes
This commit is contained in:
parent
03a3195e8e
commit
3655cc877c
@ -67,6 +67,7 @@ func writeMapToFile(filename string, data map[string]any) {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
bytes = append(bytes, '\n')
|
||||
err = os.WriteFile(filename, bytes, 0o666)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user