Skip to content

Commit

Permalink
jshint 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Feb 13, 2018
1 parent 305d9f9 commit b698124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const movieInfo = require('movie-info')

var movie = movieInfo('Avatar')

// year search, plus error handling
// search with year and handle errors
movieInfo('Oceans Eleven', '1960').then(
function (data) {
// success
Expand Down
10 changes: 1 addition & 9 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@ var pkg = require('./package.json');
var movieInfo = require('./index');
var movie = process.argv[2];

var cb = function(err, url) {
if (err) {
console.error(err);
process.exit(1);
}
console.log(url);
};

var help = function() {
console.log(pkg.description, '\n');
console.log('Usage');
console.log(' $ movie-info movie [year]\n');
console.log('Example');
console.log(' $ movie-info 'Oceans Eleven' 1960');
console.log(' $ movie-info \'Oceans Eleven\' 1960');
console.log(' { ... }');
};

Expand Down

0 comments on commit b698124

Please sign in to comment.