Skip to content

Commit d42bfaa

Browse files
Address AI code review comment
1 parent fa40800 commit d42bfaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/github/pullrequests.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ func GetPullRequestCheckRuns(ctx context.Context, client *github.Client, owner,
279279
err,
280280
), nil
281281
}
282-
defer func() { _ = resp.Body.Close() }()
282+
defer resp.Body.Close()
283283

284284
if resp.StatusCode != http.StatusOK {
285285
body, err := io.ReadAll(resp.Body)
@@ -305,7 +305,7 @@ func GetPullRequestCheckRuns(ctx context.Context, client *github.Client, owner,
305305
err,
306306
), nil
307307
}
308-
defer func() { _ = resp.Body.Close() }()
308+
defer resp.Body.Close()
309309

310310
if resp.StatusCode != http.StatusOK {
311311
body, err := io.ReadAll(resp.Body)

0 commit comments

Comments
 (0)