Skip to content

Commit

Permalink
Use map::contains
Browse files Browse the repository at this point in the history
  • Loading branch information
wichtounet committed Sep 22, 2023
1 parent 26c136f commit 15cb81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ fs::path budget::path_to_budget_file(std::string_view file) {
}

bool budget::config_contains(std::string_view key){
return configuration.find(key) != configuration.end();
return configuration.contains(key);
}

std::string budget::config_value(std::string_view key){
Expand Down Expand Up @@ -293,7 +293,7 @@ bool budget::user_config_value_bool(std::string_view key, bool def) {

bool budget::internal_config_contains(std::string_view key){
const server_lock_guard l(internal_config_lock);
return internal.find(key) != internal.end();
return internal.contains(key);
}

std::string budget::internal_config_value(std::string_view key){
Expand Down

0 comments on commit 15cb81f

Please sign in to comment.