scope fix

This commit is contained in:
Doug Bird 2018-06-14 13:24:46 -07:00
parent 3c60d490c5
commit 10ddb1bbfe
8 changed files with 8 additions and 16 deletions

View File

@ -60,9 +60,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldDesc = {};
let i;
let i = 0;
parser.on('readable', function() {
if (!i) i=0;
let row, domain, desc;
while (row = parser.read()) {
if (!row.length) {

View File

@ -61,9 +61,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldInfo = [];
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row, domain, desc, type;
while (row = parser.read()) {
if (!row.length) {

View File

@ -59,9 +59,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldEnum = [];
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row;
while (row = parser.read()) {
if (!row.length) {

View File

@ -61,9 +61,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldType = {};
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row, domain, type;
while (row = parser.read()) {
if (!row.length) {

View File

@ -58,9 +58,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldDesc = {};
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row, domain, desc;
while (row = parser.read()) {
if (!row.length) {

View File

@ -58,9 +58,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldInfo = [];
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row, domain, desc, type;
while (row = parser.read()) {
if (!row.length) {

View File

@ -58,9 +58,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldEnum = [];
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row;
while (row = parser.read()) {
if (!row.length) {

View File

@ -58,9 +58,8 @@ if (!program.quiet) {
let parser = parse({ delimiter: ',' });
let tldType = {};
parser.on('readable', function() {
let i = 0;
parser.on('readable', function() {
let row, domain, type;
while (row = parser.read()) {
if (!row.length) {