mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-04 10:19:17 +02:00
chore: format code with prettier
This commit is contained in:
parent
6f1be248fb
commit
6ada4a7a06
77 changed files with 459 additions and 283 deletions
|
@ -1,4 +1,4 @@
|
|||
import { AdbCommandBase } from './base.js';
|
||||
import { AdbCommandBase } from "./base.js";
|
||||
|
||||
export class AdbTcpIpCommand extends AdbCommandBase {
|
||||
public async setPort(port: number): Promise<void> {
|
||||
|
@ -8,14 +8,14 @@ export class AdbTcpIpCommand extends AdbCommandBase {
|
|||
|
||||
const output = await this.adb.createSocketAndWait(`tcpip:${port}`);
|
||||
if (output !== `restarting in TCP mode port: ${port}\n`) {
|
||||
throw new Error('Invalid response');
|
||||
throw new Error("Invalid response");
|
||||
}
|
||||
}
|
||||
|
||||
public async disable(): Promise<void> {
|
||||
const output = await this.adb.createSocketAndWait('usb:');
|
||||
if (output !== 'restarting in USB mode\n') {
|
||||
throw new Error('Invalid response');
|
||||
const output = await this.adb.createSocketAndWait("usb:");
|
||||
if (output !== "restarting in USB mode\n") {
|
||||
throw new Error("Invalid response");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue