Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
9df38fea
Commit
9df38fea
authored
Mar 17, 2016
by
Peter Mikula
Committed by
Peter Mikula
Mar 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ignoring response body on (un)block calls
parent
35a62c4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
users.go
users.go
+2
-3
No files found.
users.go
View file @
9df38fea
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment