Skip to content

Commit 0a3886c

Browse files
committed
fix: transformed snils length validate
1 parent b21d2e0 commit 0a3886c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func IsSNILSValid(snils string) (bool, error) {
9898
}
9999
fSnils := strings.ReplaceAll(snils, "-", "")
100100
fSnils = strings.ReplaceAll(fSnils, " ", "")
101-
if len(snils) != 11 {
101+
if len(fSnils) != 11 {
102102
return false, ErrInvalidFormattedSNILSLength
103103
}
104104
snilsArr, err := strToArr(fSnils)

0 commit comments

Comments
 (0)