Skip to content

Commit da349b4

Browse files
committed
Fixed linting
1 parent 957cc2d commit da349b4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

countries/andorra.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ func (a andorra) Calc(vat string) bool {
3535
return false
3636
}
3737

38-
if !strings.Contains("ACDEFGLOPU", firstLetter) {
38+
if !strings.Contains(andFirstLetterFull, firstLetter) {
3939
return false
4040
}
4141

4242
if firstLetter == "F" && number > 699999 {
4343
return false
4444
}
4545

46-
if strings.Contains("AL", firstLetter) && number > 699999 && number < 800000 {
46+
if strings.Contains(andFirstLetterPrefix, firstLetter) && number > 699999 && number < 800000 {
4747
return false
4848
}
4949

@@ -53,3 +53,8 @@ func (a andorra) Calc(vat string) bool {
5353
func (a andorra) GetCountry() Country {
5454
return a.Country
5555
}
56+
57+
const (
58+
andFirstLetterFull = "ACDEFGLOPU"
59+
andFirstLetterPrefix = "AL"
60+
)

0 commit comments

Comments
 (0)