Skip to content

Commit

Permalink
Fix Issue es-analysis#198
Browse files Browse the repository at this point in the history
  • Loading branch information
JSlain committed Sep 5, 2016
1 parent a944bb9 commit 990b5b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plato.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ exports.inspect = function(files, outputDir, options, done) {

var fileShort = file.replace(commonBasePath, '');
var fileSafe = fileShort.replace(/[^a-zA-Z0-9]/g,'_');
var source = fs.readFileSync(file).toString().trim();
if (!source) {
var source = fs.readFileSync(file).toString();
if (!source.trim()) {
log.info('Not parsing empty file "%s"', file);
return;
}
Expand Down

0 comments on commit 990b5b9

Please sign in to comment.