Skip to content

Commit

Permalink
Add a check to see if packageJson.apidoc was defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed May 8, 2015
1 parent b0f49e8 commit 8ef8fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/package_info.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ PackageInfo.prototype.get = function() {
// replace header footer with file contents
_.extend(result, this._getHeaderFooter(result));

if (Object.keys(apidocJson).length === 0)
if (Object.keys(apidocJson).length === 0 && ! packageJson.apidoc)
app.log.warn('Please create an apidoc.json.');

return result;
Expand Down

0 comments on commit 8ef8fa5

Please sign in to comment.