Skip to content

Commit 977aa72

Browse files
committed
Revert parseBoolResponse changes
1 parent 5bf4843 commit 977aa72

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

github/users_blocking.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ func (s *UsersService) IsBlocked(ctx context.Context, user string) (bool, *Respo
5353

5454
resp, err := s.client.Do(ctx, req, nil)
5555
isBlocked, err := parseBoolResponse(err)
56-
if err != nil {
57-
return false, resp, err
58-
}
59-
60-
return isBlocked, resp, nil
56+
return isBlocked, resp, err
6157
}
6258

6359
// BlockUser blocks specified user for the authenticated user.

github/users_followers.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,7 @@ func (s *UsersService) IsFollowing(ctx context.Context, user, target string) (bo
9292

9393
resp, err := s.client.Do(ctx, req, nil)
9494
following, err := parseBoolResponse(err)
95-
if err != nil {
96-
return false, resp, err
97-
}
98-
99-
return following, resp, nil
95+
return following, resp, err
10096
}
10197

10298
// Follow will cause the authenticated user to follow the specified user.

0 commit comments

Comments
 (0)