Commit 9df38fea authored by Peter Mikula's avatar Peter Mikula Committed by Peter Mikula

ignoring response body on (un)block calls

parent 35a62c4c
......@@ -18,7 +18,6 @@ package gitlab
import (
"fmt"
"io/ioutil"
"time"
)
......@@ -405,7 +404,7 @@ func (s *UsersService) BlockUser(user int) (*Response, error) {
return nil, err
}
resp, err := s.client.Do(req, ioutil.Discard)
resp, err := s.client.Do(req, nil)
if err != nil {
return resp, err
}
......@@ -424,7 +423,7 @@ func (s *UsersService) UnblockUser(user int) (*Response, error) {
return nil, err
}
resp, err := s.client.Do(req, ioutil.Discard)
resp, err := s.client.Do(req, nil)
if err != nil {
return resp, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment