Skip to content

Commit

Permalink
Fixed gofumpt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tdawe committed Dec 17, 2024
1 parent 41d4e96 commit 4cdc981
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func TestGetTemplateByID(t *testing.T) {

for _, tc := range tests {
t.Run(tc.id, func(t *testing.T) {

defer tc.server.Close()
gc := &GatewayClient{
http: &http.Client{},
Expand Down Expand Up @@ -149,7 +148,7 @@ func TestGetTemplateByFilters(t *testing.T) {
expected: nil,
},
"error due to parsing response": {
server: httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
server: httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("invalid json"))
})),
Expand All @@ -159,7 +158,6 @@ func TestGetTemplateByFilters(t *testing.T) {

for _, tc := range tests {
t.Run("", func(t *testing.T) {

defer tc.server.Close()
gc := &GatewayClient{
http: &http.Client{},
Expand Down Expand Up @@ -227,7 +225,7 @@ func TestGetAllTemplates(t *testing.T) {
expected: nil,
},
"error due to parsing response": {
server: httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
server: httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("invalid json"))
})),
Expand All @@ -237,7 +235,6 @@ func TestGetAllTemplates(t *testing.T) {

for _, tc := range tests {
t.Run("", func(t *testing.T) {

defer tc.server.Close()
gc := &GatewayClient{
http: &http.Client{},
Expand Down

0 comments on commit 4cdc981

Please sign in to comment.