diff options
Diffstat (limited to 'internal/forges/github.go')
| -rw-r--r-- | internal/forges/github.go | 9 | +2 −7 |
1 files changed, 2 insertions, 7 deletions
diff --git a/internal/forges/github.go b/internal/forges/github.go index ba9973f..a811ef6 100644 --- a/internal/forges/github.go +++ b/internal/forges/github.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2026 Nikolay Govorov +// Copyright (c) 2026 Nikolay Govorov // SPDX-License-Identifier: AGPL-3.0-or-later package forges @@ -12,7 +12,6 @@ import ( "encoding/json" "fmt" "io" - "log/slog" "net/http" "net/url" "strings" @@ -93,11 +92,7 @@ func (g *GitHub) SetStatus(ctx context.Context, ev *PushEvent, status Status, de if err != nil { return err } - defer func() { - if err := resp.Body.Close(); err != nil { - slog.Warn("github: close response body", "err", err) - } - }() + defer resp.Body.Close() if resp.StatusCode >= 300 { b, _ := io.ReadAll(resp.Body) |
