Re-use adb client
Summary: This class already has an adb client. Instead of creating new ones, should just use that. Reviewed By: passy Differential Revision: D10231152 fbshipit-source-id: c9426a12f0f6baf94026da51a79131d07e58053c
This commit is contained in:
committed by
Facebook Github Bot
parent
ff6b1790cb
commit
bd25e5e97c
@@ -213,8 +213,7 @@ export default class CertificateProvider {
|
|||||||
deviceCsrFilePath: string,
|
deviceCsrFilePath: string,
|
||||||
csr: string,
|
csr: string,
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const client = adb.createClient();
|
return this.adb.listDevices().then((devices: Array<{id: string}>) => {
|
||||||
return client.listDevices().then((devices: Array<{id: string}>) => {
|
|
||||||
const deviceMatchList = devices.map(device =>
|
const deviceMatchList = devices.map(device =>
|
||||||
// To find out which device requested the cert, search them
|
// To find out which device requested the cert, search them
|
||||||
// all for a matching csr file.
|
// all for a matching csr file.
|
||||||
|
|||||||
Reference in New Issue
Block a user