@@ -78,7 +78,7 @@ export default class DevToolsHookService implements Services.ServiceInstance {
7878 #commandStack: string [ ] = [ ]
7979
8080 // This is used to capture the last command signature to avoid duplicate captures
81- #lastCommandSig: string | null = null ;
81+ #lastCommandSig: string | null = null
8282
8383 /**
8484 * allows to define the type of data being captured to hint the
@@ -183,18 +183,18 @@ export default class DevToolsHookService implements Services.ServiceInstance {
183183 command,
184184 args,
185185 src : source . getFileName ( ) + ':' + source . getLineNumber ( )
186- } ) ;
186+ } )
187187
188188 if ( this . #lastCommandSig !== cmdSig ) {
189- this . #commandStack. push ( command ) ;
190- this . #lastCommandSig = cmdSig ;
189+ this . #commandStack. push ( command )
190+ this . #lastCommandSig = cmdSig
191191 }
192192 }
193193 }
194194
195195 afterCommand ( command : keyof WebDriverCommands , args : any [ ] , result : any , error ?: Error ) {
196196 // Skip bookkeeping for internal injection calls
197- if ( this . #injecting) return
197+ if ( this . #injecting) { return }
198198
199199 /* Ensure that the command is captured only if it matches the last command in the stack.
200200 * This prevents capturing commands that are not top-level user commands.
@@ -243,8 +243,8 @@ export default class DevToolsHookService implements Services.ServiceInstance {
243243 }
244244
245245 async #ensureInjected( reason : string ) {
246- if ( ! this . #browser) return
247- if ( this . #injecting) return
246+ if ( ! this . #browser) { return }
247+ if ( this . #injecting) { return }
248248 try {
249249 this . #injecting = true
250250 // Cheap marker check (no heavy stack work)
0 commit comments