From f8f9bfbe72663d7d42a29b1d2ff620122e96715c Mon Sep 17 00:00:00 2001 From: ka3de Date: Wed, 23 Aug 2023 09:49:30 +0200 Subject: [PATCH] Nolint for unused methods This is added temporarily until these methods are used in a related PR (see #1006). --- common/frame_session.go | 2 +- common/page.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/frame_session.go b/common/frame_session.go index e5f1d15ff..5232b96fc 100644 --- a/common/frame_session.go +++ b/common/frame_session.go @@ -1085,7 +1085,7 @@ func (fs *FrameSession) updateViewport() error { return nil } -func (fs *FrameSession) executionContextForID( +func (fs *FrameSession) executionContextForID( //nolint:unused executionContextID cdpruntime.ExecutionContextID, ) (*ExecutionContext, error) { fs.contextIDToContextMu.Lock() diff --git a/common/page.go b/common/page.go index 72d39898f..d1572f7c8 100644 --- a/common/page.go +++ b/common/page.go @@ -1040,7 +1040,7 @@ func (p *Page) Workers() []api.Worker { } // executionContextForID returns the page ExecutionContext for the given ID. -func (p *Page) executionContextForID( +func (p *Page) executionContextForID( //nolint:unused executionContextID cdpruntime.ExecutionContextID, ) (*ExecutionContext, error) { p.frameSessionsMu.RLock()