mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
vim-patch:9.0.1246: code is indented more than necessary (#22006)
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes vim/vim#11887)
142ed77898
Omit function_using_block_scopes(): only affects Vim9 script.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -760,13 +760,12 @@ static void funccal_unref(funccall_T *fc, ufunc_T *fp, bool force)
|
||||
static bool func_remove(ufunc_T *fp)
|
||||
{
|
||||
hashitem_T *hi = hash_find(&func_hashtab, (char *)UF2HIKEY(fp));
|
||||
|
||||
if (!HASHITEM_EMPTY(hi)) {
|
||||
hash_remove(&func_hashtab, hi);
|
||||
return true;
|
||||
if (HASHITEM_EMPTY(hi)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
hash_remove(&func_hashtab, hi);
|
||||
return true;
|
||||
}
|
||||
|
||||
static void func_clear_items(ufunc_T *fp)
|
||||
|
Reference in New Issue
Block a user