mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-02 20:07:23 +02:00
add trailing newline when generating swagger group routes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user