fix: adjust to comments from CR

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
(cherry picked from commit 15b1c38e386c1e05ccea6a5f77fbca9786a52c87)
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f