refactor: PR review cleanup

This commit is contained in:
Austin Horstman
2023-09-09 12:02:56 -05:00
parent 2b8c92e8fd
commit 3ae2fe3272
3 changed files with 12 additions and 13 deletions

View File

@ -61,7 +61,7 @@ auto Workspaces::parse_config(const Json::Value &config) -> void {
if (config_sort_by.isString()) {
auto sort_by_str = config_sort_by.asString();
try {
sort_by_ = enum_parser_.sortStringToEnum(sort_by_str, sort_map_);
sort_by_ = enum_parser_.parseStringToEnum(sort_by_str, sort_map_);
} catch (const std::invalid_argument &e) {
// Handle the case where the string is not a valid enum representation.
sort_by_ = SORT_METHOD::DEFAULT;