Skip to content

Commit 47bce36

Browse files
chore: Remove redundant conditional (#543)
1 parent c82cfef commit 47bce36

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

auth/code/oauth.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ func (c *Config) NewRequest(ctx context.Context, method, urlStr string, v url.Va
196196
if c.UserAgent != "" {
197197
req.Header.Set("User-Agent", c.UserAgent)
198198
}
199-
if err != nil {
200-
return nil, err
201-
}
202199

203200
req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
204201
req.Header.Add("Accept", "application/json")

0 commit comments

Comments
 (0)