From 5fbde1267755334a8b68f0c045f56370a8c52445 Mon Sep 17 00:00:00 2001 From: Guru Mehar Rachaputi Date: Fri, 26 Jul 2024 12:54:02 +0200 Subject: [PATCH] chore: phone module code style (#832) * test: phone module testcase added * test case added to phone module for code coverage Signed-off-by: Guru Mehar Rachaputi * chore: phone module code style * remove commented code in phone.cpp and extra ; Signed-off-by: Guru Mehar Rachaputi --------- Signed-off-by: Guru Mehar Rachaputi --- src/modules/phone.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/phone.cpp b/src/modules/phone.cpp index 4668c0392..5f0e92569 100644 --- a/src/modules/phone.cpp +++ b/src/modules/phone.cpp @@ -32,12 +32,7 @@ std::string phoneNumberByFormat(std::optional format) std::string phoneNumberByCountry(std::optional 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); }