Skip to content

Commit

Permalink
Uncrustify linter
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Bajor <[email protected]>
  • Loading branch information
Wiktor-99 committed Apr 11, 2024
1 parent d389675 commit cd6fd72
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nav2_map_server/src/map_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,14 @@ T yaml_get_value(const YAML::Node & node, const std::string & key)

std::string get_home_dir()
{
if (const char* home_dir = std::getenv("HOME"))
{
if (const char* home_dir = std::getenv("HOME")) {
return std::string{home_dir};
}
return std::string{};
}

std::string expand_user_home_dir_if_needed(
std::string yaml_filename,
std::string yaml_filename,
std::string home_variable_value)
{
if (yaml_filename.size() < 2 || !(yaml_filename[0] == '~' && yaml_filename[1] == '/')) {
Expand Down

0 comments on commit cd6fd72

Please sign in to comment.