Skip to content

Commit 7cd04f0

Browse files
Fix debug when using CLI as library
When CLI is used as a library, the method for debug returns incorrect result - previously the return type of the method we are calling was `string[]`, we've changed it to `string` but forgot to remove the `_.first(result)`. So now the debug returns incorrect URL. Remove the `_.first` and return the result directly.
1 parent 82d6abc commit 7cd04f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/debug-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class DebugService extends EventEmitter implements IDebugService {
6464
result = await debugService.debug(debugData, debugOptions);
6565
}
6666

67-
return _.first(result);
67+
return result;
6868
}
6969

7070
public getDebugService(device: Mobile.IDevice): IPlatformDebugService {

0 commit comments

Comments
 (0)