Small code cleanup

This commit is contained in:
2024-12-30 20:53:53 +01:00
parent 4d73c122e3
commit b5a1bfc247
3 changed files with 6 additions and 19 deletions

View File

@ -2,7 +2,6 @@ package main
import (
"code.dlmw.ch/dlmw/qv/internal/models"
"github.com/go-playground/form/v4"
"io"
"log/slog"
"net/http"
@ -11,12 +10,9 @@ import (
)
func newTestApplication(t *testing.T) *application {
formDecoder := form.NewDecoder()
return &application{
logger: slog.New(slog.NewTextHandler(io.Discard, nil)),
elections: &models.ElectionModel{},
formDecoder: formDecoder,
logger: slog.New(slog.NewTextHandler(io.Discard, nil)),
elections: &models.ElectionModel{},
}
}