Remove unnecessary length check.

This commit is contained in:
Christian Keil 2020-09-09 17:49:21 +02:00
parent d3932c0242
commit d1f48e5ede

View file

@ -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