config/Option: convert to strictly-typed enum
This commit is contained in:
@@ -70,7 +70,7 @@ GetHome(Error &error)
|
||||
static AllocatedPath
|
||||
GetConfiguredHome(Error &error)
|
||||
{
|
||||
const char *user = config_get_string(CONF_USER, nullptr);
|
||||
const char *user = config_get_string(ConfigOption::USER, nullptr);
|
||||
return user != nullptr
|
||||
? GetHome(user, error)
|
||||
: GetHome(error);
|
||||
|
||||
Reference in New Issue
Block a user