Run gofmt

This commit is contained in:
Gabriel Simmer 2024-06-30 15:58:09 +01:00
parent a38931bde1
commit d21c5be4ae
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ
2 changed files with 8 additions and 8 deletions

View file

@ -155,7 +155,7 @@ func (h *Handler) fetch(resp http.ResponseWriter, req *http.Request) {
} }
if h.Cdn != "" { if h.Cdn != "" {
resp.Header().Set("Location", h.Cdn + "/" + filename) resp.Header().Set("Location", h.Cdn+"/"+filename)
resp.WriteHeader(http.StatusCreated) resp.WriteHeader(http.StatusCreated)
return return
} }
@ -293,7 +293,7 @@ func (h *Handler) store(resp http.ResponseWriter, req *http.Request) {
} }
if h.Cdn != "" { if h.Cdn != "" {
resp.Header().Set("Location", h.Cdn + "/" + outFilename) resp.Header().Set("Location", h.Cdn+"/"+outFilename)
} else { } else {
resp.Header().Set("Location", "/uploads/"+outFilename) resp.Header().Set("Location", "/uploads/"+outFilename)
} }

View file

@ -8,8 +8,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
awss3 "github.com/aws/aws-sdk-go-v2/service/s3" awss3 "github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/google/uuid" "github.com/google/uuid"
) )