Skip to content

Commit

Permalink
Merge branch 'alin23-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
DamnWidget committed Sep 1, 2016
2 parents 8249f4a + 137e6cb commit 6482bf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/next_lint_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def _harvest_next(self) -> int:
if not len(lines):
return None

lines_list = []
if cur_line and list(lines)[-1] > cur_line:
lines_list = [l for l in lines if l > cur_line]

return lines_list[0]
return lines_list[0] if len(lines_list) > 0 else lines.pop()

0 comments on commit 6482bf2

Please sign in to comment.