style: happy linting

This commit is contained in:
Marvin Preuss 2024-04-02 07:36:47 +00:00
parent 77ad55f1eb
commit 63369157b3
3 changed files with 5 additions and 10 deletions

View File

@ -15,6 +15,7 @@ func Handler() func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
lw := mutil.WrapWriter(w)
defer func() {
// Logging.
slog.Info(

View File

@ -79,8 +79,6 @@ func TestSave(t *testing.T) {
is := is.New(t)
for _, tt := range tables {
tt := tt
t.Run(tt.name, func(t *testing.T) {
d := t.TempDir()

View File

@ -32,10 +32,8 @@ func TestMarshal(t *testing.T) {
is := is.New(t)
for _, table := range tables {
tt := table
t.Run(tt.name, func(t *testing.T) {
for _, tt := range tables {
t.Run(tt.name, func(_ *testing.T) {
b, err := tt.input.MarshalJSON()
if tt.err == nil {
is.Equal(b, tt.expected)
@ -61,10 +59,8 @@ func TestUnmarshal(t *testing.T) {
is := is.New(t)
for _, table := range tables {
tt := table
t.Run(tt.name, func(t *testing.T) {
for _, tt := range tables {
t.Run(tt.name, func(_ *testing.T) {
e := epoch.Epoch{}
err := e.UnmarshalJSON(tt.input)