Skip to content

Commit a4da46e

Browse files
committed
Remove redundant check
1 parent bc1d5d4 commit a4da46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phonenumberutil.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ func FormatInOriginalFormat(number *PhoneNumber, regionCallingFrom string) strin
14711471
nationalPrefix := GetNddPrefixForRegion(
14721472
regionCode, true /* strip non-digits */)
14731473
nationalFormat := Format(number, NATIONAL)
1474-
if len(nationalPrefix) == 0 || len(nationalPrefix) == 0 {
1474+
if len(nationalPrefix) == 0 {
14751475
// If the region doesn't have a national prefix at all,
14761476
// we can safely return the national format without worrying
14771477
// about a national prefix being added.

0 commit comments

Comments
 (0)