Formatting
continuous-integration/drone/tag Build is passing

This commit is contained in:
Arnie
2024-10-24 13:20:19 +02:00
parent 373f01c9c2
commit ea5fed1bf9
6 changed files with 19 additions and 12 deletions
+1 -2
View File
@@ -7,10 +7,9 @@ import (
"os"
"time"
"go.c3c.cz/cv/app/server/internal/version"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"go.c3c.cz/cv/app/server/internal/version"
)
type FrontendConfigDef struct {
@@ -14,10 +14,9 @@ import (
"strings"
"time"
"go.uber.org/zap"
"go.c3c.cz/cv/app/server/internal/files"
"go.c3c.cz/cv/app/server/internal/version"
"go.uber.org/zap"
)
type handler struct {
@@ -67,7 +66,6 @@ func (h *handler) serveFile(w http.ResponseWriter, r *http.Request, modtime time
gw.Reset(io.Discard)
}
err = gw.Close()
if err != nil {
h.logger.Warn("Could not close gzip writer", zap.Error(err))
return
+1 -2
View File
@@ -10,9 +10,8 @@ import (
"net/http"
"time"
"go.uber.org/zap"
"go.c3c.cz/cv/app/server/internal/files"
"go.uber.org/zap"
)
func init() {