mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-26 21:25:18 +01:00
Unnecessary check around range
This commit is contained in:
parent
40fbce07db
commit
c9f1b02251
1 changed files with 2 additions and 4 deletions
|
@ -129,11 +129,9 @@ func request(t *testing.T, s *Server, method, url, body string, headers map[stri
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if headers != nil {
|
|
||||||
for k, v := range headers {
|
for k, v := range headers {
|
||||||
req.Header.Set(k, v)
|
req.Header.Set(k, v)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
s.handle(rr, req)
|
s.handle(rr, req)
|
||||||
return rr
|
return rr
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue