Remove unnecessary length check.
This commit is contained in:
parent
d3932c0242
commit
d1f48e5ede
1 changed files with 1 additions and 8 deletions
|
@ -135,14 +135,7 @@ function! ale#code_action#ApplyChanges(filename, changes, should_save) abort
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let l:lines_before_change = len(l:lines)
|
let l:lines_before_change = len(l:lines)
|
||||||
|
let l:lines = l:start + l:middle + l:lines[l:end_line :]
|
||||||
if l:end_line < len(l:lines)
|
|
||||||
let l:end = l:lines[l:end_line :]
|
|
||||||
else
|
|
||||||
let l:end = []
|
|
||||||
endif
|
|
||||||
|
|
||||||
let l:lines = l:start + l:middle + l:end
|
|
||||||
|
|
||||||
let l:current_line_offset = len(l:lines) - l:lines_before_change
|
let l:current_line_offset = len(l:lines) - l:lines_before_change
|
||||||
let l:line_offset += l:current_line_offset
|
let l:line_offset += l:current_line_offset
|
||||||
|
|
Reference in a new issue