chore: format code with prettier

This commit is contained in:
Simon Chan 2023-02-23 16:00:08 +08:00
parent 6f1be248fb
commit 6ada4a7a06
77 changed files with 459 additions and 283 deletions

View file

@ -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");
}
}
}