Small code cleanup
This commit is contained in:
@ -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{},
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user