routes/repo: added deletion of an empty line at the end of file (#5261) (#5270)
routes/repo: added deletion of an empty line at the end of file (#5261) (#5270)

* Added deletion of an empty line at the end of file (#5261)

Signed-off-by: Alexey Terentyev <0a330927be0f7f961a1628203cf6ca9507550a2a@gmail.com>

* Fix after feedback

Signed-off-by: Alexey Terentyev <0a330927be0f7f961a1628203cf6ca9507550a2a@gmail.com>

gogits/gogs,chriswatt/gogs,mukaiu/gogs,chriswatt/gogs,gogits/gogs,chriswatt/gogs,mukaiu/gogs,gogits/gogs,mukaiu/gogs