diff --git a/js/modules/k6/browser/common/browser_context.go b/js/modules/k6/browser/common/browser_context.go index 2a93ade6e3b..c051cb86951 100644 --- a/js/modules/k6/browser/common/browser_context.go +++ b/js/modules/k6/browser/common/browser_context.go @@ -262,16 +262,7 @@ func (b *BrowserContext) NewPage() (*Page, error) { return nil, err } - var ( - bctxid cdp.BrowserContextID - ptid target.ID - ) - if b != nil { - bctxid = b.id - } - - b.logger.Debugf("BrowserContext:NewPage:return", "bctxid:%v ptid:%s", bctxid, ptid) - + b.logger.Debugf("BrowserContext:NewPage:return", "bctxid:%v ptid:%s", b.id, p.targetID) return p, nil }