Skip to content

Commit

Permalink
Improved my code - took out console.log, comments and unused variable
Browse files Browse the repository at this point in the history
 This is the commit message #2:

Took out console.log

Took out comments

added comment
  • Loading branch information
strawberries73 committed Oct 21, 2020
1 parent 5e6bd29 commit 298b27e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions CommandToolLinkCheck/CommandTool/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ const fs=require('fs')
const fetch=require('node-fetch')
const path=require('path')
const packageJson = require('./package.json');
const colors = require('colors');


console.log(process.argv)

//This is command line tool - if red links are not working - if green links are working
//Run with a file name to process file, run with argument v or version to get the version
//of this tool

//Flag labeling each URL as a good or bad
const _label = ({
good: "GOOD",
Expand Down Expand Up @@ -47,7 +40,7 @@ else{ // more then 2
console.log(res.status,url.green,_label.good.rainbow)
else if(res.status==400||res.status==404)
console.log(res.status,url)
.then.process(); //termination
.then.process(); //Termination

})
.catch((error)=>{
Expand All @@ -58,4 +51,4 @@ else{ // more then 2
})
}
}
// done

0 comments on commit 298b27e

Please sign in to comment.