Skip to content

Commit bb770b7

Browse files
committed
fix(playwright): remove unused temp directory creation
1 parent 7cb361f commit bb770b7

File tree

2 files changed

+0
-66
lines changed

2 files changed

+0
-66
lines changed

server/cmd/api/api/playwright.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"os"
88
"os/exec"
9-
"path/filepath"
109
"time"
1110

1211
"github.com/onkernel/kernel-images/server/lib/logger"
@@ -130,10 +129,3 @@ func (s *ApiService) ExecutePlaywrightCode(ctx context.Context, request oapi.Exe
130129
Result: &result.Result,
131130
}, nil
132131
}
133-
134-
// Ensure the temp directory exists
135-
func init() {
136-
// Make sure /tmp exists and is writable
137-
tmpDir := filepath.Join(os.TempDir(), "playwright")
138-
os.MkdirAll(tmpDir, 0755)
139-
}

server/cmd/api/api/playwright_test.go

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)