Skip to content

Commit d912416

Browse files
Strip out unused options object
1 parent 4329661 commit d912416

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/project/project-actions.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { ActionFeedback } from "../common/use-action-feedback";
1919
import { Dialogs } from "../common/use-dialogs";
2020
import {
2121
ConnectionStatus,
22-
ConnectOptions,
2322
DeviceConnection,
2423
AfterRequestDevice,
2524
FlashDataError,
@@ -140,7 +139,7 @@ export class ProjectActions {
140139
this.webusbNotSupportedError(finalFocusRef);
141140
} else {
142141
if (await this.showConnectHelp(forceConnectHelp, finalFocusRef)) {
143-
return this.connectInternal({}, userAction, finalFocusRef);
142+
return this.connectInternal(userAction, finalFocusRef);
144143
}
145144
}
146145
};
@@ -190,12 +189,11 @@ export class ProjectActions {
190189
* Connect to the device if possible, otherwise show feedback.
191190
*/
192191
private async connectInternal(
193-
options: ConnectOptions,
194192
userAction: ConnectionAction,
195193
finalFocusRef: FinalFocusRef
196194
) {
197195
try {
198-
await this.device.connect(options);
196+
await this.device.connect();
199197
finalFocusRef?.current?.focus();
200198
return true;
201199
} catch (e) {

0 commit comments

Comments
 (0)