[#362] ir/netmap: Do not add LocationCode attribute to netmap candidate

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-02-10 23:49:55 +03:00 committed by Leonard Lyubich
parent 37915b53cf
commit 34248b00ed

View file

@ -33,8 +33,7 @@ const (
attrKeyCountryCode = "CountryCode"
attrKeyCountry = "Country"
attrKeyLocationCode = "LocationCode"
attrKeyLocation = "Location"
attrKeyLocation = "Location"
attrKeySubDivCode = "SubDivCode"
attrKeySubDiv = "SubDiv"
@ -55,8 +54,7 @@ func New(prm Prm) *Validator {
attrKeyCountryCode: {converter: countryCodeValue},
attrKeyCountry: {converter: countryValue},
attrKeyLocationCode: {converter: locationCodeValue},
attrKeyLocation: {converter: locationValue},
attrKeyLocation: {converter: locationValue},
attrKeySubDivCode: {converter: subDivCodeValue, optional: true},
attrKeySubDiv: {converter: subDivValue, optional: true},