Skip to content

Commit 6c2cb42

Browse files
authored
chore(lint): fix linting issue
1 parent fa165d0 commit 6c2cb42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/driver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ export class NovaWindowsDriver extends BaseDriver<NovaWindowsDriverConstraints,
192192
try {
193193
const result = await this.sendPowerShellCommand(AutomationElement.automationRoot.buildCommand());
194194
const elementId = result.split('\n').map((id) => id.trim()).filter(Boolean)[0];
195-
elementId && await this.sendPowerShellCommand(new FoundAutomationElement(elementId).buildCloseCommand());
195+
if (elementId) {
196+
await this.sendPowerShellCommand(new FoundAutomationElement(elementId).buildCloseCommand());
197+
}
196198
} catch {
197199
// noop
198200
}

0 commit comments

Comments
 (0)