Fix promisify-child-process use
Summary: Per title. Somehow both typecheck, but importing the module like this doesn't work. Reviewed By: jknoxville Differential Revision: D17285507 fbshipit-source-id: 40a38db5dfb52213e0407f8bda83f2ebad5c50c7
This commit is contained in:
committed by
Facebook Github Bot
parent
d8cd69666e
commit
b19f08ba54
@@ -8,7 +8,7 @@
|
||||
import BaseDevice, {DeviceType, DeviceShell, LogLevel} from './BaseDevice';
|
||||
import {Priority} from 'adbkit-logcat-fb';
|
||||
import child_process from 'child_process';
|
||||
import promisify_child_process from 'promisify-child-process';
|
||||
import {spawn} from 'promisify-child-process';
|
||||
import ArchivedDevice from './ArchivedDevice';
|
||||
import {ReadStream} from 'fs';
|
||||
|
||||
@@ -82,8 +82,7 @@ export default class AndroidDevice extends BaseDevice {
|
||||
|
||||
clearLogs(): Promise<void> {
|
||||
this.logEntries = [];
|
||||
return promisify_child_process
|
||||
.spawn('adb', ['logcat', '-c'])
|
||||
return spawn('adb', ['logcat', '-c'])
|
||||
.then(_ => undefined);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user