aboutsummaryrefslogtreecommitdiff
path: root/hotline/files_test.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/files_test.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/files_test.go')
-rw-r--r--hotline/files_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/files_test.go b/hotline/files_test.go
index 0a7eb7b..9bed670 100644
--- a/hotline/files_test.go
+++ b/hotline/files_test.go
@@ -148,7 +148,7 @@ func TestCalcItemCount(t *testing.T) {
if err != nil {
t.Fatalf("Failed to create temp dir: %v", err)
}
- defer os.RemoveAll(tempDir)
+ defer func() { _ = os.RemoveAll(tempDir) }()
// Create the test directory structure
if err := createTestDirStructure(tempDir, tt.structure); err != nil {