1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-22 19:33:27 +01:00

Unnecessary check around range

This commit is contained in:
Philipp Heckel 2021-12-07 15:43:51 -05:00
parent 40fbce07db
commit c9f1b02251

View file

@ -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