Skip to content

Commit

Permalink
Merge pull request #38 from petetnt/pete-patch-1
Browse files Browse the repository at this point in the history
Bail out from setting gutterMarkers if there's no line to set one for
  • Loading branch information
zaggino committed Jul 12, 2016
2 parents 899d148 + 3ac3f3f commit 2c89bf1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/GutterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ define(function () {

_results = _results.filter(function (obj) {
var severity = obj.severity;
if (!obj.line) {
return false;
}
if (!showGutterError && severity === 2) {
return false;
}
Expand Down

0 comments on commit 2c89bf1

Please sign in to comment.