Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
fallback to object if no cache
Browse files Browse the repository at this point in the history
  • Loading branch information
viankakrisna committed Feb 28, 2017
1 parent 767ba09 commit 9dcef3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,10 @@ module.exports = function(input, map) {
if (err) {
return callback(err)
}
printLinterOutput(res, config, webpack)
printLinterOutput(res || {}, config, webpack)
return callback(null, input, map)
})
}

printLinterOutput(
lint(engine, input, resourcePath),
config,
Expand Down

0 comments on commit 9dcef3c

Please sign in to comment.