Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from RomanPodymov/master
Browse files Browse the repository at this point in the history
var factor -> let factor
  • Loading branch information
gkaimakas authored Nov 10, 2020
2 parents 00305a7 + 143e7d9 commit 9a0a8f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftValidators/Classes/Validator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public class Validator {
}

} else if (version.rawValue == "13") {
var factor = [1, 3]
let factor = [1, 3]
for i in 0 ..< 12 {
let charAt: Int = Int("\(sanitized[sanitized.index(sanitized.startIndex, offsetBy: i)])")!
checkSum += factor[i % 2] * charAt
Expand Down

0 comments on commit 9a0a8f9

Please sign in to comment.