mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim_getenv: Remove redundant NULL check.
This commit is contained in:
@@ -601,8 +601,7 @@ const void *vim_env_iter_rev(const char delim,
|
|||||||
char *vim_getenv(const char *name)
|
char *vim_getenv(const char *name)
|
||||||
{
|
{
|
||||||
// init_path() should have been called before now.
|
// init_path() should have been called before now.
|
||||||
assert(get_vim_var_str(VV_PROGPATH)
|
assert(get_vim_var_str(VV_PROGPATH)[0] != NUL);
|
||||||
&& get_vim_var_str(VV_PROGPATH)[0] != NUL);
|
|
||||||
|
|
||||||
const char *kos_env_path = os_getenv(name);
|
const char *kos_env_path = os_getenv(name);
|
||||||
if (kos_env_path != NULL) {
|
if (kos_env_path != NULL) {
|
||||||
|
Reference in New Issue
Block a user