Skip to content

Commit 5870d87

Browse files
committed
- ValidVD now is no longer used only locally
1 parent 47b4163 commit 5870d87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CNJ/validation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func ValidateCNJ(cnj string) (bool, error) {
1717
return false, err
1818
}
1919

20-
vd, err := validVD(decomposedCNJ.ArgNumber)
20+
vd, err := ValidVD(decomposedCNJ.ArgNumber)
2121
if err != nil {
2222
return false, err
2323
}
@@ -29,8 +29,8 @@ func ValidateCNJ(cnj string) (bool, error) {
2929
}
3030
}
3131

32-
// validVD returns the verifyng digit from a given cnj using ArgNumber
33-
func validVD(argNumber string) (string, error) {
32+
// ValidVD returns the verifying digit from a given cnj using ArgNumber
33+
func ValidVD(argNumber string) (string, error) {
3434
cnjInt, bl := new(big.Int).SetString(argNumber, 10)
3535
if bl != true {
3636
return "", errors.New("cant convert ArgNumber into big int")

0 commit comments

Comments
 (0)