aboutsummaryrefslogtreecommitdiff
path: root/hotline/tracker.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2025-07-04 17:24:02 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2025-07-04 17:24:02 -0700
commitee6629ad78ac62fa14371ea5ddb7474c1fe9c979 (patch)
tree186d23424e73797976f6d2f71d193bcbc71dbf76 /hotline/tracker.go
parent262f66351484369fa65c2e23df81ef682ea06d89 (diff)
Fix file handle close warnings by ignoring return values
Updated all file close operations to use anonymous functions that ignore return values to satisfy golangci-lint errcheck warnings.
Diffstat (limited to 'hotline/tracker.go')
-rw-r--r--hotline/tracker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/tracker.go b/hotline/tracker.go
index 52963bf..edd973d 100644
--- a/hotline/tracker.go
+++ b/hotline/tracker.go
@@ -69,7 +69,7 @@ func register(dialer Dialer, tracker string, tr io.Reader) error {
if err != nil {
return fmt.Errorf("failed to dial tracker: %v", err)
}
- defer conn.Close()
+ defer func() { _ = conn.Close() }()
if _, err := io.Copy(conn, tr); err != nil {
return fmt.Errorf("failed to write to connection: %w", err)