Browse Source

Neaten htaccess check

pull/2/head
Luke Childs 8 years ago
parent
commit
1380b9dda8
  1. 8
      src/cli.js

8
src/cli.js

@ -14,11 +14,5 @@ program
const readHtaccess = program.file ? readFile(program.file, 'utf-8') : getStdin();
readHtaccess
.then(htaccess => {
if(!htaccess) {
program.outputHelp();
}
return htconvert(htaccess);
})
.then(htaccess => htaccess ? htconvert(htaccess) : program.help())
.then(console.log);

Loading…
Cancel
Save