diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-05 23:25:10 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-16 01:40:29 -0300 |
commit | e85598e5a91c714c10034b6b3986a666065d1078 (patch) | |
tree | 827dd9c4f8f1f6ef73ff1f20a609d08e36640986 /src/nvim/eval.c | |
parent | f099809e670106aff55c41c7b19c0bc81e38aa7b (diff) | |
download | rneovim-e85598e5a91c714c10034b6b3986a666065d1078.tar.gz rneovim-e85598e5a91c714c10034b6b3986a666065d1078.tar.bz2 rneovim-e85598e5a91c714c10034b6b3986a666065d1078.zip |
Remove unnecessary comments and unnecessary return
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index a77910346e..1de2b7bbf1 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -5856,7 +5856,7 @@ dictitem_T *dict_find(dict_T *d, char_u *key, int len) /* * Get a string item from a dictionary. * When "save" is TRUE allocate memory for it. - * Returns NULL if the entry doesn't exist or some other failure. + * Returns NULL if the entry doesn't exist. */ char_u *get_dict_string(dict_T *d, char_u *key, int save) { @@ -5867,8 +5867,9 @@ char_u *get_dict_string(dict_T *d, char_u *key, int save) if (di == NULL) return NULL; s = get_tv_string(&di->di_tv); - if (save && s != NULL) + if (save) { s = vim_strsave(s); + } return s; } @@ -17419,9 +17420,6 @@ static void func_do_profile(ufunc_T *fp) } fp->uf_tml_idx = -1; - if (fp->uf_tml_count == NULL || fp->uf_tml_total == NULL - || fp->uf_tml_self == NULL) - return; fp->uf_profiling = TRUE; } |