mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-05 14:07:01 +00:00
fix lint issue
This commit is contained in:
parent
7c45a420e4
commit
026ef06afe
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ func (f FileResponse) IsEmpty() bool {
|
||||||
|
|
||||||
func (f FileResponse) createHttpResponse() (http.Header, int) {
|
func (f FileResponse) createHttpResponse() (http.Header, int) {
|
||||||
header := make(http.Header)
|
header := make(http.Header)
|
||||||
statusCode := http.StatusInternalServerError
|
var statusCode int
|
||||||
|
|
||||||
if f.Exists {
|
if f.Exists {
|
||||||
statusCode = http.StatusOK
|
statusCode = http.StatusOK
|
||||||
|
|
Loading…
Reference in a new issue