mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
rest: resolve linter errors (#430)
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package client_test
|
||||
|
||||
import (
|
||||
"github.com/gorilla/mux"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
|
||||
"github.com/inbucket/inbucket/v3/pkg/rest/client"
|
||||
)
|
||||
|
||||
@@ -357,5 +358,5 @@ type jsonHandler struct {
|
||||
|
||||
func (j *jsonHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
j.called = true
|
||||
w.Write([]byte(j.json))
|
||||
_, _ = w.Write([]byte(j.json))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user