summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorChristian Keil <keil@dfn-cert.de>2020-09-09 17:49:21 +0200
committerChristian Keil <keil@dfn-cert.de>2020-09-09 17:49:21 +0200
commitd1f48e5edef1d622817ffc054e6963e6ca956371 (patch)
treec27d0f7846cfe09c8d82c319903c885bed8b0826 /autoload
parentd3932c02424eec0520faa2afa42371c27122f5a7 (diff)
downloadale-d1f48e5edef1d622817ffc054e6963e6ca956371.zip
Remove unnecessary length check.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/code_action.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/autoload/ale/code_action.vim b/autoload/ale/code_action.vim
index 1959d1b1..359bc0d6 100644
--- a/autoload/ale/code_action.vim
+++ b/autoload/ale/code_action.vim
@@ -135,14 +135,7 @@ function! ale#code_action#ApplyChanges(filename, changes, should_save) abort
endif
let l:lines_before_change = len(l:lines)
-
- 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:lines = l:start + l:middle + l:lines[l:end_line :]
let l:current_line_offset = len(l:lines) - l:lines_before_change
let l:line_offset += l:current_line_offset