Skip to content

Commit

Permalink
Reorder if statement for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
bencsikandrei committed May 3, 2022
1 parent 5955515 commit f3088eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ std::vector<std::string> get_background_images(const std::string& campaign)
return images_general;
}

if(const auto it = images_campaigns.find(campaign); it == images_campaigns.cend()) {
return images_general;
} else {
if(const auto it = images_campaigns.find(campaign); it != images_campaigns.cend()) {
return it->second;
}

return images_general;
}

void set_about(const game_config_view& cfg)
Expand Down

0 comments on commit f3088eb

Please sign in to comment.