Fix strings
This commit is contained in:
parent
6ed9532752
commit
655616dd1b
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ type InseeData struct {
|
||||||
// If a value can't be determined, the corresponding field is generally set to Unknown.
|
// If a value can't be determined, the corresponding field is generally set to Unknown.
|
||||||
func NewInseeData(inseeNumber string) (*InseeData, error) {
|
func NewInseeData(inseeNumber string) (*InseeData, error) {
|
||||||
if len(inseeNumber) != 15 {
|
if len(inseeNumber) != 15 {
|
||||||
return nil, fmt.Errorf("le numéro INSEE number must contain 15 characters")
|
return nil, fmt.Errorf("le numéro INSEE doit contenir 15 caractères")
|
||||||
}
|
}
|
||||||
num := inseeNumber
|
num := inseeNumber
|
||||||
departmentCode := num[5:7]
|
departmentCode := num[5:7]
|
||||||
|
|
Loading…
Reference in a new issue