From 8a0a8e2dfb91b03f4609da756069194bc144c085 Mon Sep 17 00:00:00 2001 From: PJ Date: Sun, 3 May 2026 11:07:50 +0700 Subject: [PATCH] chore(chrome): drop dead bundleSource/bundleMu bundleSource was written under bundleMu but never read. Either remove it or wire a re-install path; remove until the second is actually needed. --- internal/driver/chrome/driver.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/driver/chrome/driver.go b/internal/driver/chrome/driver.go index 38542fa..0037160 100644 --- a/internal/driver/chrome/driver.go +++ b/internal/driver/chrome/driver.go @@ -27,9 +27,6 @@ type Driver struct { logsMu sync.Mutex logs []driver.LogEntry - - bundleMu sync.Mutex - bundleSource string } // New creates a new ChromeDriver. Call Terminate when done. @@ -355,10 +352,6 @@ func (d *Driver) runCtx(ctx context.Context) (context.Context, context.CancelFun // document context, then immediately evaluates it against the current page so // the very first tick has access to the registered globals. func (d *Driver) InstallBundle(ctx context.Context, source []byte) error { - d.bundleMu.Lock() - d.bundleSource = string(source) - d.bundleMu.Unlock() - runCtx, cancel := d.runCtx(ctx) defer cancel() return chromedp.Run(runCtx,