mirror of https://github.com/stella-emu/stella.git
Minor optimization: use two-way IF instead of separate ones.
This commit is contained in:
parent
24bb06e8b1
commit
0b04b130f9
|
@ -59,12 +59,11 @@ FilesystemNodePOSIX::FilesystemNodePOSIX(const string& p, bool verify)
|
|||
if(_path[0] == '~')
|
||||
{
|
||||
const char* home = getenv("HOME");
|
||||
if (home != nullptr)
|
||||
if(home != nullptr)
|
||||
_path.replace(0, 1, home);
|
||||
}
|
||||
|
||||
// Get absolute path (only used for relative directories)
|
||||
if(_path[0] == '.')
|
||||
else if(_path[0] == '.')
|
||||
{
|
||||
char buf[MAXPATHLEN];
|
||||
if(realpath(_path.c_str(), buf))
|
||||
|
|
Loading…
Reference in New Issue