mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-09 01:17:43 +02:00
add trailing newline when generating swagger group routes
This commit is contained in:
parent
1a469dc31b
commit
1d49d66270
@ -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