Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: handle errcheck lint for os.RemoveAll in test cleanup

Databdc049a6b49b
diff --git a/internal/web/safepath_test.go b/internal/web/safepath_test.go
index d15784b4..bfdbe096 100644
--- a/internal/web/safepath_test.go
+++ b/internal/web/safepath_test.go
@@ -94,7 +94,7 @@ func TestSafePath_TempDir(t *testing.T) {
if err := os.MkdirAll(sibling, 0o755); err != nil {
t.Fatalf("setup sibling: %v", err)
}
- defer os.RemoveAll(sibling)
+ defer func() { _ = os.RemoveAll(sibling) }()
t.Run("absolute sibling rejected", func(t *testing.T) {
_, err := SafePath(base, sibling)