Skip to content

Commit

Permalink
chore: phone module code style (#832)
Browse files Browse the repository at this point in the history
* test: phone module testcase added

* test case added to phone module for code coverage

Signed-off-by: Guru Mehar Rachaputi <[email protected]>

* chore: phone module code style

* remove commented code in phone.cpp and extra ;

Signed-off-by: Guru Mehar Rachaputi <[email protected]>

---------

Signed-off-by: Guru Mehar Rachaputi <[email protected]>
  • Loading branch information
00thirdeye00 authored Jul 26, 2024
1 parent 9309cd5 commit 5fbde12
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/modules/phone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ std::string phoneNumberByFormat(std::optional<std::string> format)
std::string phoneNumberByCountry(std::optional<PhoneNumberCountryFormat> format)
{
std::string countryFormat = (format)? phoneNumberFormatMap.at(*format) :
phoneNumberFormatMap.at(PhoneNumberCountryFormat::Default);;

// if (countryFormat.empty())
// {
// return phoneNumberFormatMap.at(PhoneNumberCountryFormat::Default);
// }
phoneNumberFormatMap.at(PhoneNumberCountryFormat::Default);

return helper::replaceSymbolWithNumber(countryFormat);
}
Expand Down

0 comments on commit 5fbde12

Please sign in to comment.