Skip to content

Commit

Permalink
Merge pull request #50 from p-siriphanthong/master
Browse files Browse the repository at this point in the history
fix error when source not exist
  • Loading branch information
haya14busa authored Oct 26, 2020
2 parents 5e2eedc + 3994de0 commit c1e10b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslint-formatter-rdjson/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = function (results, data) {
results.forEach(result => {
const filePath = result.filePath;
const source = result.source;
const sourceLines = result.source.split('\n');
const sourceLines = source ? source.split('\n') : [];
result.messages.forEach(msg => {
let diagnostic = {
message: msg.message,
Expand Down

0 comments on commit c1e10b2

Please sign in to comment.