(paths.c) Cleanups - string cannot be empty at this point

This commit is contained in:
twinaphex 2019-04-21 17:57:32 +02:00
parent 435c80a844
commit 2509ee9646

View File

@ -94,8 +94,7 @@ void path_set_redirect(void)
/* If path doesn't exist, try to create it,
* if everything fails revert to the original path. */
if(!path_is_directory(new_savefile_dir)
&& !string_is_empty(new_savefile_dir))
if(!path_is_directory(new_savefile_dir))
{
path_mkdir(new_savefile_dir);
if(!path_is_directory(new_savefile_dir))
@ -121,8 +120,7 @@ void path_set_redirect(void)
/* If path doesn't exist, try to create it.
* If everything fails, revert to the original path. */
if(!path_is_directory(new_savestate_dir) &&
!string_is_empty(new_savestate_dir))
if(!path_is_directory(new_savestate_dir))
{
path_mkdir(new_savestate_dir);
if(!path_is_directory(new_savestate_dir))