Skip to content

Commit f2a6407

Browse files
authored
Merge pull request aquasecurity#40 from aquasecurity/liamg-fix-formatter-trailing-line
Fix trailing line issue in default formatter
2 parents 10e2c41 + c746734 commit f2a6407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formatters/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func highlightCode(result rules.Result) error {
177177
for i, bodyString := range strings.Split(string(content), "\n") {
178178

179179
// this line is outside the range, skip it
180-
if i+1 < outerRange.GetStartLine() || i > outerRange.GetEndLine() {
180+
if i+1 < outerRange.GetStartLine() || i+1 > outerRange.GetEndLine() {
181181
continue
182182
}
183183

0 commit comments

Comments
 (0)