Skip to content

Commit

Permalink
Small variable name style change, from camel case to snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeliao committed Mar 10, 2023
1 parent c52b7a5 commit 9313938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/multipass/exceptions/blueprint_exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class BlueprintMinimumException : public std::runtime_error
}

private:
static std::string left_trim_and_replace_last_comma_with_and(const std::string& inputStr)
static std::string left_trim_and_replace_last_comma_with_and(const std::string& input_str)
{
if (inputStr.empty())
if (input_str.empty())
return {};

// trim leftest comma first and replace the last comma with " and" if that last comma exist
auto left_trimmed_str = inputStr.substr(1, inputStr.size() - 1);
auto left_trimmed_str = input_str.substr(1, input_str.size() - 1);
const auto last_comma_pos = left_trimmed_str.find_last_of(',');
return last_comma_pos != std::string::npos ? left_trimmed_str.replace(last_comma_pos, 1, " and")
: left_trimmed_str;
Expand Down

0 comments on commit 9313938

Please sign in to comment.