Skip to content

Commit

Permalink
Update UGPhoneNumberFormatProvider.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorPilley authored Nov 23, 2024
1 parent 96efe58 commit 3942343
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ private UGPhoneNumberFormatProvider()

protected override string ProvideFormat(PhoneNumber phoneNumber, bool international)
{
if (phoneNumber.NationalDestinationCode![0] == 3 ||
phoneNumber.NationalDestinationCode![0] == 4)
if (phoneNumber.NationalDestinationCode! == 3 ||

Check failure on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 16 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'
phoneNumber.NationalDestinationCode! == 4)

Check failure on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'

Check failure on line 17 in src/PhoneNumbers/Formatters/FormatProviders/UGPhoneNumberFormatProvider.cs

View workflow job for this annotation

GitHub Actions / Build (macos-latest)

Operator '==' cannot be applied to operands of type 'string' and 'int'
{
return international ? "## ### ####" : "0## ### ####";
}
Expand Down

0 comments on commit 3942343

Please sign in to comment.