Skip to content

Commit d569a46

Browse files
committed
chore: use undefined for checking key existence
1 parent 46a486d commit d569a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/adapters/command-execution-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default class CommandExecutionAdapter {
1818
const executeCommandParams = CommandExecutionAdapter.createExecuteCommandParams(command, commandArgs);
1919
const commandCustomCallback = this.commandsCustomCallbacks.get(command);
2020

21-
return commandCustomCallback != null ? await commandCustomCallback(executeCommandParams) : await connection.executeCommand(executeCommandParams);
21+
return commandCustomCallback !== undefined ? await commandCustomCallback(executeCommandParams) : await connection.executeCommand(executeCommandParams);
2222
}
2323

2424
private static createExecuteCommandParams(command: string, commandArgs?: any[]): ExecuteCommandParams {

0 commit comments

Comments
 (0)