Skip to content

Commit eb4b514

Browse files
committed
fix: lints errors
1 parent 2693df0 commit eb4b514

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

parser/fns/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ func main() {
3232
checkErr(err)
3333
}()
3434

35-
fmt.Println("package main", "\n")
3635
fmt.Println("var SupportedTaxDepartments = map[ConstitutionRegionCode]TaxDepart{")
3736

3837
scanner := bufio.NewScanner(file)
@@ -45,7 +44,6 @@ func main() {
4544
if err != nil {
4645
var output string
4746
if nextRegion {
48-
//fmt.Println("},")
4947
output += "Name: "
5048
}
5149
fmt.Println(output + "`" + row + "`,")

utils/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func CodeToInts(code int) []int {
6565
for code > 0 {
6666
digit := code % 10
6767
res = append([]int{digit}, res...)
68-
code = code / 10
68+
code /= 10
6969
}
7070

7171
return res

validate_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func Test_Validate(t *testing.T) {
1515

1616
func Test_Validate_Unsupported(t *testing.T) {
1717
require.Panics(t, func() {
18-
Validate(DocType(100500), "100500")
18+
_, err := Validate(DocType(100500), "100500")
19+
require.NoError(t, err)
1920
})
2021
}

0 commit comments

Comments
 (0)