Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
idoqo committed Jan 15, 2025
1 parent 40e6be7 commit 71ad5e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/api/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package update

import (
"errors"
"github.com/containrrr/watchtower/pkg/types"
"io"
"net/http"
"os"
"strings"

log "github.com/sirupsen/logrus"

"github.com/containrrr/watchtower/pkg/types"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/update/update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package update

import (
"errors"
"github.com/containrrr/watchtower/pkg/types"
"net/http"
"net/http/httptest"
"testing"

"github.com/containrrr/watchtower/pkg/types"
)

func TestHandleError(t *testing.T) {
Expand Down Expand Up @@ -33,7 +34,6 @@ func TestHandleError(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_ = httptest.NewRequest(http.MethodGet, "/v1/update", nil)
rr := httptest.NewRecorder()

handleError(rr, tt.error)
Expand Down

0 comments on commit 71ad5e1

Please sign in to comment.