summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-05-24 10:15:37 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-05-24 17:18:05 +0200
commit18ae552c6228095902e4ef4b55be984211331d82 (patch)
treecbd56a9c1ead561a2f47ad994a0fe488347a98a4 /internal
parentec59b9bc1ccedb56f8a0b471401c3c96ab53c5a3 (diff)
API + Client: Fix linting errors
Diffstat (limited to 'internal')
-rw-r--r--internal/server/api_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/api_test.go b/internal/server/api_test.go
index 07510b0..8752e5f 100644
--- a/internal/server/api_test.go
+++ b/internal/server/api_test.go
@@ -24,7 +24,7 @@ func compareEndpoints(ep1 Endpoints, ep2 Endpoints) bool {
}
func Test_APIGetEndpoints(t *testing.T) {
- handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ handler := http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
fmt.Fprintln(w, "Hello!")
})
hs := &test.HandlerSet{}
@@ -74,7 +74,7 @@ func Test_APIGetEndpoints(t *testing.T) {
},
}
// Update the handler
- hs.SetHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ hs.SetHandler(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "application/json")
jsonStr, err := json.Marshal(ep)