0
0
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:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-22 21:53:42 -05:00
parent 03a3195e8e
commit 3655cc877c
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -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)