mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-01 18:40:18 +08:00
fix: delete duplicate err check in utils/validation.go (#2831)
This commit is contained in:
@ -85,9 +85,6 @@ func GetCountryCode(prefix string, phone string) (string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
countryCode := phonenumbers.GetRegionCodeForNumber(phoneNumber)
|
countryCode := phonenumbers.GetRegionCodeForNumber(phoneNumber)
|
||||||
if countryCode == "" {
|
if countryCode == "" {
|
||||||
|
Reference in New Issue
Block a user