diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-09-15 14:21:27 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-09-15 14:21:27 +0200 |
commit | 6732957e42350b3aefa4b1c80371baea92950651 (patch) | |
tree | 1605473bf22c7e4ab90a6cc9bebf5cb807fa1d90 /lib/generator.js | |
parent | 5f56098ae7fae80a4dd75a944c38201560b480c6 (diff) | |
parent | 1fd00068595dfced5a0f16ac05ae2553d09608bc (diff) | |
download | gitbook-6732957e42350b3aefa4b1c80371baea92950651.zip gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.gz gitbook-6732957e42350b3aefa4b1c80371baea92950651.tar.bz2 |
Merge pull request #930 from GitbookIO/jshint
Add config for jshint and fix lint errors
Diffstat (limited to 'lib/generator.js')
-rw-r--r-- | lib/generator.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/generator.js b/lib/generator.js index 407afa5..fca5b3c 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -3,8 +3,6 @@ var path = require("path"); var Q = require("q"); var fs = require("./utils/fs"); -var Plugin = require("./plugin"); - var BaseGenerator = function(book) { this.book = book; @@ -65,7 +63,7 @@ BaseGenerator.prototype.copyCover = function() { fs.copy(path.join(that.book.parentRoot(), "cover_small.jpg"), path.join(that.options.output, "cover_small.jpg")) ]); }) - .fail(function(err) { + .fail(function() { return Q(); }); }; |