Fix no shadow warnings (#22190)

Summary:
Fixes `no-shadow` eslint errors.
Pull Request resolved: https://github.com/facebook/react-native/pull/22190

Differential Revision: D13564238

Pulled By: cpojer

fbshipit-source-id: 96ba36b397088fa406e8f5781b1538a0b6804a8d
This commit is contained in:
Ignacio Olaciregui
2019-01-01 17:10:38 -08:00
committed by Facebook Github Bot
parent bd32234e6e
commit 2c3f807ace
4 changed files with 14 additions and 14 deletions

View File

@@ -50,8 +50,8 @@ describe('Android Test App', function() {
driver.on('status', function(info) {
console.log(info.cyan);
});
driver.on('command', function(method, path, data) {
if (path === 'source()' && data) {
driver.on('command', function(method, command, data) {
if (command === 'source()' && data) {
console.log(
' > ' + method.yellow,
'Screen contents'.grey,
@@ -59,11 +59,11 @@ describe('Android Test App', function() {
pd.xml(data).yellow,
);
} else {
console.log(' > ' + method.yellow, path.grey, data || '');
console.log(' > ' + method.yellow, command.grey, data || '');
}
});
driver.on('http', function(method, path, data) {
console.log(' > ' + method.magenta, path, (data || '').grey);
driver.on('http', function(method, urlPath, data) {
console.log(' > ' + method.magenta, urlPath, (data || '').grey);
});
// every interval print what is on the screen