Skip to content

Commit

Permalink
Merge pull request #35 from minecraft-addon-tools/fix-trailing-comma-…
Browse files Browse the repository at this point in the history
…severity-bug

Fixed a bug when comments are allowed but trailing commas aren't
  • Loading branch information
aeschli committed Jan 10, 2019
2 parents 5d2a340 + 11d9132 commit c4f4431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/jsonValidation.ts
Expand Up @@ -77,7 +77,7 @@ export class JSONValidation {

jsonDocument.syntaxErrors.forEach(p => {
if (p.code === ErrorCode.TrailingComma) {
if (typeof commentSeverity !== 'number') {
if (typeof trailingCommaSeverity !== 'number') {
return;
}
p.severity = trailingCommaSeverity;
Expand Down

0 comments on commit c4f4431

Please sign in to comment.