mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 14:26:58 +00:00
fix lint issue
This commit is contained in:
parent
da84be2352
commit
1bbb1b4a10
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ func ReturnErrorPage(ctx *context.Context, msg string, statusCode int) {
|
|||
msg = strings.ReplaceAll(strings.ReplaceAll(ErrorPage, "%message%", msg), "%status%", http.StatusText(statusCode))
|
||||
}
|
||||
|
||||
ctx.RespWriter.Write([]byte(msg))
|
||||
_, _ = ctx.RespWriter.Write([]byte(msg))
|
||||
}
|
||||
|
||||
func errorMessage(statusCode int) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue