mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 10:56:31 +00:00
vim-patch:partial:9.0.1196: code is indented more than necessary (#21796)
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes vim/vim#11813)
e857598896
Partial port as this depends on some previous eval and 'smoothscroll'
patches.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -326,10 +326,12 @@ void tv_list_free_list(list_T *const l)
|
||||
void tv_list_free(list_T *const l)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
if (!tv_in_free_unref_items) {
|
||||
tv_list_free_contents(l);
|
||||
tv_list_free_list(l);
|
||||
if (tv_in_free_unref_items) {
|
||||
return;
|
||||
}
|
||||
|
||||
tv_list_free_contents(l);
|
||||
tv_list_free_list(l);
|
||||
}
|
||||
|
||||
/// Unreference a list
|
||||
|
Reference in New Issue
Block a user