mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 18:29:23 +02:00
refactor: code cleanup
This commit is contained in:
parent
c440e83828
commit
721b6c0da6
68 changed files with 1161 additions and 1036 deletions
|
@ -47,7 +47,7 @@ export class AdbTcpIpCommand extends AdbCommandBase {
|
|||
|
||||
async setPort(port: number): Promise<string> {
|
||||
if (port <= 0) {
|
||||
throw new Error(`Invalid port ${port}`);
|
||||
throw new TypeError(`Invalid port ${port}`);
|
||||
}
|
||||
|
||||
const output = await this.adb.createSocketAndWait(`tcpip:${port}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue