Skip to content

Commit

Permalink
Fix debug when using CLI as library
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rosen-vladimirov committed Jul 19, 2017
1 parent 82d6abc commit 7cd04f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/debug-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class DebugService extends EventEmitter implements IDebugService {
result = await debugService.debug(debugData, debugOptions);
}

return _.first(result);
return result;
}

public getDebugService(device: Mobile.IDevice): IPlatformDebugService {
Expand Down

0 comments on commit 7cd04f0

Please sign in to comment.