Skip to content

Commit

Permalink
- ValidVD now is no longer used only locally
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFillol committed Aug 9, 2023
1 parent 47b4163 commit 5870d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CNJ/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func ValidateCNJ(cnj string) (bool, error) {
return false, err
}

vd, err := validVD(decomposedCNJ.ArgNumber)
vd, err := ValidVD(decomposedCNJ.ArgNumber)
if err != nil {
return false, err
}
Expand All @@ -29,8 +29,8 @@ func ValidateCNJ(cnj string) (bool, error) {
}
}

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

0 comments on commit 5870d87

Please sign in to comment.