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 parser = parse({ delimiter: ',' });
let tldDesc = {}; let tldDesc = {};
let i; let i = 0;
parser.on('readable', function() { parser.on('readable', function() {
if (!i) i=0;
let row, domain, desc; let row, domain, desc;
while (row = parser.read()) { while (row = parser.read()) {
if (!row.length) { if (!row.length) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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