style: happy linting
This commit is contained in:
parent
77ad55f1eb
commit
63369157b3
@ -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(
|
||||
|
2
internal/cache/cache_test.go
vendored
2
internal/cache/cache_test.go
vendored
@ -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()
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user