chore: format code

This commit is contained in:
Simon Chan 2023-02-03 18:02:05 +08:00
parent 0046c76ee1
commit 19ee58ce29
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
12 changed files with 122 additions and 51 deletions

View file

@ -1,5 +1,3 @@
// cspell: ignore libusb
import { PromiseResolver } from "@yume-chan/async";
import {
AbortController,
@ -269,6 +267,10 @@ export class Adb implements Closeable {
}
}
public supportsFeature(feature: AdbFeatures): boolean {
return this._features.includes(feature);
}
/**
* Add a handler for incoming socket.
* @param handler A function to call with new incoming sockets. It must return `true` if it accepts the socket.