Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function androidPortForward(
systemPort: number,
devicePort: number,
) {
await adb.forwardPort(systemPort!, devicePort);
await adb.forwardPort(systemPort, devicePort);
}

export async function androidRemovePortForward(adb: ADB, systemPort: number) {
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ export async function fetchFlutterServerPort(
`Checking if flutter server is running on port ${systemPort || devicePort} for simulator with id ${udid}`,
);
await waitForFlutterServer.bind(this)(
(systemPort || devicePort)!,
(systemPort || devicePort),
packageName,
);
this.log.info(
`Flutter server is successfully running on port ${systemPort || devicePort}`,
);
return (systemPort || devicePort)!;
return (systemPort || devicePort);
} catch (e) {
return null;
}
Expand Down
Loading