From c9f1b0225133d470a929404e84bd49f0debb84c4 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Tue, 7 Dec 2021 15:43:51 -0500 Subject: [PATCH] Unnecessary check around range --- server/server_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/server_test.go b/server/server_test.go index 904e4b4..ca3f3ce 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -129,10 +129,8 @@ func request(t *testing.T, s *Server, method, url, body string, headers map[stri if err != nil { t.Fatal(err) } - if headers != nil { - for k, v := range headers { - req.Header.Set(k, v) - } + for k, v := range headers { + req.Header.Set(k, v) } s.handle(rr, req) return rr