mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
refactor: object_to_vim() cannot fail
Since the parent commit, object_to_vim() can't fail, so callers don't need to check its result.
This commit is contained in:
@@ -253,9 +253,7 @@ Object dict_set_var(dict_T *dict, String key, Object value, bool del, bool retva
|
||||
typval_T tv;
|
||||
|
||||
// Convert the object to a vimscript type in the temporary variable
|
||||
if (!object_to_vim(value, &tv, err)) {
|
||||
return rv;
|
||||
}
|
||||
object_to_vim(value, &tv, err);
|
||||
|
||||
typval_T oldtv = TV_INITIAL_VALUE;
|
||||
|
||||
|
Reference in New Issue
Block a user